Skip to content
Subako Docs
Esc
navigateopen⌘Jpreview

DELETE /v1/workspaces/{workspace_id}

DELETE/v1/workspaces/{workspace_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
workspace_idstring<uuid>required
Workspace id
Responses
204The workspace and everything scoped to it are gone: agents and their versions, sessions and their transcripts, vaults and their credentials, skills, workspace-owned providers, keys, and memberships. Usage rows survive, keeping the workspace id as the value they are attributed by. This cannot be undone. Stored skill content is purged asynchronously on a best-effort basis.
400Malformed path parameter.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks workspace.manage.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such workspace, or the caller cannot see it.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Request
curl -X DELETE "https://api.us.cloud.subako.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
The workspace and everything scoped to it are gone: agents and their versions, sessions and their transcripts, vaults and their credentials, skills, workspace-owned providers, keys, and memberships. Usage rows survive, keeping the workspace id as the value they are attributed by. This cannot be undone. Stored skill content is purged asynchronously on a best-effort basis.