Skip to main content
DELETE
/
workspaces
/
{workspaceId}
Delete Workspace
curl --request DELETE \
  --url https://api.raydocs.com/workspaces/{workspaceId} \
  --header 'Authorization: Bearer <token>'

Authentication & Scope

Requires the workspaces-write ability.
This action is irreversible. All templates, sessions, documents, and results in the workspace will be permanently deleted.

Request

DELETE /workspaces/1 HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdintegerYesThe workspace ID

Response

204 No Content – Workspace successfully deleted. 404 Not Found – Workspace does not exist or you don’t have access. 403 Forbidden – You don’t have permission to delete this workspace.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

workspaceId
integer
required

Response

Deleted