Supercheck LogoSupercheck
Organizations API

Delete organization

Owner only. Permanently deletes the organization, its projects, data and stored files, and cancels the subscription on record. Audit log entries are kept. The body must repeat the organization id in confirmOrganizationId. Not allowed while impersonating. Requires an interactive, same-origin browser session; project-scoped CLI tokens receive 403.

DELETE
/api/organizations/{id}

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Path Parameters

id*string

Organization ID

Request Body

application/json
  1. body
confirmOrganizationId*string

Must equal the id in the path.

Formatuuid

Response Body

Organization deleted

application/json
  1. response
success?boolean
message?string
Example Request
curl -X DELETE 'https://demo.supercheck.dev/api/organizations/string' \  -H 'Content-Type: application/json' \  -d '{  "confirmOrganizationId": "c0a0d65e-5546-4f24-b69e-b7da38e63f37"}'
Example Response
{  "success": true,  "message": "string"}