Skip to main content
DELETE
Delete a workspace
Permanently removes the workspace and all of its contents. The organization’s last workspace can’t be deleted. Before you delete, review its agents and credentials in Projects. Deletes the workspace and everything in it (agents, secrets, connections, conversations). The organization’s last workspace cannot be deleted. A management action, like rename.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

workspaceId
string
required

Response

Workspace deleted