Delete a workspace
DELETE
/v1/workspaces/{slug}Delete a workspace.
Deletes the workspace and returns 204. An organization always keeps at least one workspace.
Requires workspace admin access: an organization owner or admin, an admin of the workspace, an organization-scoped va_ key with the admin role, or a va_ key scoped to this workspace with the admin role. Errors: 403 without it; 404 when the workspace does not exist; 409 when it is the organization's last workspace.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredthe workspace's slug
Query parameters
organizationstringrequiredthe slug of the organization the workspace belongs to
Responses
204
No Content