delete_workspace
Permanently delete a workspace and all of its content. Cost class: job.
This is an irreversible, tenant-wide destructive action.
confirm_name must equal the workspace's name exactly; this is a deliberate friction point, not a formality. The teardown (storage prefix, search index, graph nodes) runs asynchronously; poll the returned job.
Not exposed over MCP. An irreversible tenant-wide deletion does not belong in a model's action space. Surface suppression is a per-method registry flag on the MCP descriptor, not a special case at this layer.
Args: session: Database session. context: Resolved workspace plus caller access predicate. request: Must carry confirm_name equal to the workspace name. response: Response object; status is set to 202. idempotency_key: Optional replay key. wait_seconds: Bounded inline wait (rarely useful for a deletion).
Returns: Nothing; the accepted job is written directly to the response body by start_job setting the appropriate status code.
Raises: PlatformError: workspace_deleting when a teardown job is still queued or running, or invalid_request when the confirmation name does not match.
Request
- Base URLhttps://ndi-api.nace.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace identifier.
Query parameters
Bounded inline wait. 0 (the default) returns 202 immediately. Above 0 the route returns 200 with a terminal job if the work finished in time, and 202 with the still-running job if it did not. Either way, read status.
Headers
Replaying a request with the same key returns the original job with 200, never a second job. The key is kept with the job for replay and never cleared, so it must not contain personal data.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.