Fedwiki Delete Site
fedwiki-delete-site permanently removes a public federated wiki domain — both the remote folder on the Nextcloud/wiki server and the local ~/Nextcloud/fedwiki/{domain}/ folder. It uses WebDAV DELETE directly rather than relying on the Nextcloud sync client, which can be slow or prompt for confirmation on large deletions.
Usage
fedwiki-delete-site david.ide.earth
By default the script checks that pages/ is empty and exits with an error if any pages remain — use the merge skill's trash step first to clear them. To delete anyway:
fedwiki-delete-site david.ide.earth --force
What It Does
- Checks
pages/is empty (or--forceskips this) - WebDAV
DELETEonfedwiki/{domain}/— recursive, removes everything includingstatus/,recycler/, and any remaining files rm -rfthe local domain folder
HTTP 204 = deleted. HTTP 404 = already gone on the remote (local removal still proceeds).
Only for Public Wikis
This script only works for public wikis in ~/Nextcloud/fedwiki/. For private wikis in ~/Music/Guides/Private/ there is no remote to delete — just rm -rf the local folder directly.
Safety
This is irreversible on the remote. Confirm the domain name carefully, and prefer the merge workflow (which moves unique content to a successor and trashes the rest to a recycler) before deleting.
Related Skills
agentprivacy-wiki-merge— full workflow ending with delete-siteagentprivacy-wiki-reindex— reindex after bulk page changes before deletingagentprivacy-wiki-nextcloud-push— the WebDAV credentials used by this script
Verify: agentprivacy.ai · kept by the Librarian 🗃️ in the Tower's Wikis (the git-less onboarding layer) Upstream: skill.fedwiki.club/fedwiki-delete-site — vendored + re-framed; not original agentprivacy authorship