delete_space
[Workspaces]
Permanently delete a workspace. Default is protected. Read get_space for both preconditions. Non-empty workspaces require cascade true. Retain requestId and payload after an ambiguous response. A revision conflict requires inspection and a new requestId.
Before you use this tool
Permanently deletes the workspace. A non-empty workspace also needs cascade: true, which removes every collection, document, revision, and view. Default is protected.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ifRevision | string | Yes | Current workspace metadata revision from get_space. |
| ifSnapshotRevision | string | Yes | Current content snapshotRevision from get_space. Any content change since that read returns revision_conflict. |
| requestId | string | Yes | A fresh UUID for each change. After an ambiguous response, retry with the same requestId and identical arguments; a changed payload returns request_conflict. |
| spaceId | string | Yes | Workspace ID from list_spaces. |
| cascade | boolean | No | Explicitly delete all collections, documents, history, views, and content receipts. Any collection makes a workspace non-empty. Default: false |