Remotehost Docs
API ReferenceOrg workspaces

Delete an empty workspace

DELETE
/orgs/{orgId}/workspaces/{workspaceId}

Needs workspaces.manage. Only a workspace with no projects (409 workspace_not_empty otherwise; never a cascade) that is not one of the org's defaults. External workspaces an Internal one managed are kept, their manager_workspace_id cleared. Audited. Off until the workspace API is enabled for this deployment: until then it answers 404 to everyone. API keys cannot call it yet.

Authorization

bearerAuth
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

orgId*string
workspaceId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/orgs/string/workspaces/string"
Empty