Skip to main content
POST
Delete workspace
Deletes a workspace and every computer in it. Only the workspace owner can call this. An invited member gets 403. The verb is POST and the path ends in /delete. There is no DELETE handler on /workspaces/{id}. Sending DELETE there returns 405.
This cannot be undone. Every computer in the workspace is terminated and its disk destroyed.

Order of operations

The endpoint is not a transaction. It runs these steps in this order:
  1. Checks that you own the workspace. A member gets 403, and an unknown workspace gets 404.
  2. Deletes the workspace’s file records. This is permanent, and it happens before any computer is touched.
  3. Terminates each computer on its host, one at a time. A host that answers 404 counts as already gone. A computer with no recorded host address is skipped.
  4. Stops and returns 500 if any termination failed. The workspace row and its computers stay in place.
  5. Deletes the workspace row. The database cascade then removes the computer records.
A 500 does not mean the workspace is intact. By the time it is returned, the file records are already deleted, and every computer terminated before the failing one is already destroyed. What survives is the workspace row and the computers that were not reached. Retrying is safe, and it finishes the delete once every computer terminates. Nothing brings the file records back.

Path parameters

string
required
Workspace ID. Required.
The request body is ignored.

Response

boolean
true when the workspace and all of its computers were deleted. The endpoint never returns false. A failure comes back as a 4xx or 5xx instead.
string
Human-readable confirmation. Currently "Project deleted successfully".

Example

Response

Errors

The scope check runs before the workspace lookup, so a workspace-scoped key targeting an ID that does not exist gets 403, not 404.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Workspace ID

Response

Workspace deleted

success
boolean
Example:

true