knowledge_purge
Hard-delete archived knowledge pages and cascade their citations. Requires all slugs to be archived and explicit confirmation. Use to clean up tombstoned pages after merge or supersede workflows.
Instructions
Hard-delete one or more archived knowledge pages and cascade their citations. Archive-first guard: rejects any page that is not already archived — call knowledge_archive first. All slugs must be archived; a mixed list (any active) rejects the entire batch with no mutation. confirm: true is required explicitly to prevent accidental irreversible deletes. Supersession pointers in the supersessions table are NOT removed (historical record preserved). Use this to clean up tombstoned cruft after merge/supersede workflows — not for retiring active pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slugs | Yes | Slugs of archived pages to hard-delete. All must have status=archived. | |
| confirm | Yes | Must be explicitly true — required safety gate for an irreversible operation. |