Repository navigation
Bug: Cannot delete newly created sites (HTTP 409 Conflict) #8168
Bug: Cannot delete newly created sites (HTTP 409 Conflict)Version: Wiki.js 3.0.0-beta.705 Steps to reproduce
Actual behaviourThe API returns: {
"error": "conflictError",
"statusCode": 409,
"message": "Cannot delete a site that still holds content. Delete its pages and assets first."
}The site contains no pages or assets. Expected behaviourDeleting a newly created, empty site should succeed. The confirmation dialogue also states that deleting a site permanently removes its content and configuration. InvestigationQuerying PostgreSQL confirmed the following records for two independently created test sites:
Wiki.js automatically creates an empty navigation record when a new site is created. The FOREIGN KEY ("siteId") REFERENCES sites(id)There is no Confirmed workaroundManually removing the navigation record associated with one test site: DELETE FROM wiki.navigation
WHERE "siteId" = '<site-uuid>';PostgreSQL returned: After removing this record, the site could be deleted successfully through the Wiki.js administration interface. The second test site, which still has its automatically generated navigation record, remains undeletable. ConclusionThe site deletion routine appears not to remove automatically generated navigation records before attempting to delete the site. This prevents deletion of newly created sites, even when they contain no pages or assets. The issue is reproducible with multiple newly created sites, and removing the navigation record resolves it. |
Replies: 1 comment 1 reply
|
Fixed in 3.0.0-beta.718 |
Fixed in 3.0.0-beta.718