Skip to main content
DELETE
/
workspaces
/
{workspaceId}
/
organizations
/
{organizationId}
Delete an organization
curl --request DELETE \
  --url https://api.altostrat.io/workspaces/{workspaceId}/organizations/{organizationId} \
  --header 'Authorization: Bearer <token>'
{
  "type": "conflict_error",
  "code": "organization_has_usage",
  "message": "Cannot delete organization 'Engineering' because it or its descendants have active resource usage.",
  "doc_url": "https://docs.altostrat.io/errors/organization_has_usage"
}

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

organizationId
string
required

The ID of the organization.

Example:

"org_aBcDeFg123456789"

Response

The organization was successfully deleted.