Admin: remove a site, optionally with its local files #13
No reviewers
Labels
No labels
feature request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rhelwig/DecentSite!13
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/admin-delete-site"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ron asked (2026-10-10) for a way to remove sites from Admin, e.g. the old "Editor Test Site", optionally deleting their files on disk.
What it does
/sites/:id/removeconfirmation page that lists what goes (pages/posts, assets, asides, local releases, saved publishing setup and publication history) and what stays (anything on Dash Platform / IPFS — removing locally never unpublishes).export/<key>/andstub-cache/<key>/. Unchecked = records only, files stay.delete <key> from this Adminand an acknowledgement checkbox; an extra warning appears when it is the only mainnet-linked site in this Admin.deleted-sites/<key>-<time>.jsonbefore anything is removed.LocalDashMetadataStore.removeSitedoes it in one locked write and returns the storage ids still used elsewhere. The Admin AI assistant gets no removal tool.Docs: SPECS "Removing a site from Admin"; IMPLEMENTATION-PLAN entry.
Tests:
tests/site-removal.test.ts(shared vs exclusive blobs, wrong confirmation changes nothing, records-only mode, mainnet-linked site needs phrase + acknowledgement).npm test179/179, typecheck clean. Manually smoke-tested the HTTP flow on a throwaway Admin (wrong phrase → error, correct → removed + notice + snapshot).No Platform writes, no Dash.