delete_workspace
Delete a workspace. At once nothing can act in it, its links stop playing and its storage stops billing; 7 days later (its purge_at) everything in it is deleted for good: documents, assets, links, exports, keys and domains. Until then restore_workspace brings it back. Needs an organization key or an organization admin; the organization's last workspace can't be deleted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "delete_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | `ws_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `ws_…`; it starts with its region's code, such as `ws_use_…` for `us-east`. | |
| name | Yes | What it's for, such as "Production" or "Acme". | |
| region | Yes | Its home region, where its data lives and its renders run. | |
| status | Yes | `deleting` once it's deleted, until it's purged or restored. | |
| purge_at | No | When a deleted workspace is purged, with everything in it (RFC 3339); absent unless it's `deleting`. | |
| created_at | Yes | RFC 3339. | |
| key_prefix | Yes | What its API keys start with: `sk_live_`, `sk_test_` or `sk_`. | |
| organization_id | Yes | The organization it belongs to, `org_…`. | |
| rate_limit_per_minute | Yes | Requests per minute its keys may make, together. | |
| monthly_spend_cap_cents | No | The most its billable work may cost per calendar month, in USD cents; none when absent. |