brainkb_delete_space
PERMANENTLY delete a space and everything in it. SuperAdmin only; irreversible.
Drops the space's named graphs and the ingestion-history (delta) graphs that
hold copies of their data, removes the graphs' registry entries and the space's
RDF manifest, and deletes the space with its members, access rules, search
entries and SynthScholar reviews (with their kept files). EVERY SUBSPACE below it,
at any depth, is deleted the same way, deepest first (`subspaces_deleted`). Each
deletion is kept in the provenance graph (who, when, which graphs:
prov:invalidated). `confirm_slug` must equal `slug`.
Before calling: show the user the space AND its subspaces (brainkb_space_tree)
and what will be lost, and get their explicit confirmation in this conversation.
Never call it to tidy up on your own initiative. A non-SuperAdmin caller gets
403; if a step fails (502) the message says which spaces were already deleted —
the rest is untouched and it is safe to retry.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| confirm_slug | Yes |