Supercheck LogoSupercheck
Organizations API

Request organization deletion

DELETE
/api/organizations/{id}

Owner only. Schedules the organization for deletion. The organization becomes read-only for a grace window (14 days by default, ORG_DELETION_GRACE_DAYS on self-hosted installations) during which the owner can cancel. A self-hosted installation with ORG_DELETION_GRACE_DAYS=0 has no window: the purge is queued at once and the deletion cannot be cancelled. A subscription stops renewing and ends at the end of the paid period, and the owners are emailed when mail is configured. After the window the projects, data and stored files are deleted permanently. Audit log entries are kept for 12 months with email addresses removed. The body must repeat the organization name in confirmName. Needs a session created within the last few minutes (403 with code REAUTH_REQUIRED otherwise). Not allowed while impersonating. Requires an interactive, same-origin browser session; project-scoped CLI tokens receive 403.

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
confirmName*string

The exact organization name.

Response Body

Deletion scheduled

application/json
  1. response
success?boolean
status?string
purgeAfter?string

When the organization is deleted permanently unless the owner cancels.

Formatdate-time
billing?string

Outcome of stopping the subscription. retry means the provider call failed and is retried automatically.

message?string
Example Request
curl -X DELETE 'https://app.supercheck.io/api/organizations/string' \  -H 'Content-Type: application/json' \  -d '{  "confirmName": "string"}'
Example Response
{  "success": true,  "status": "string",  "purgeAfter": "2019-08-24T14:15:22Z",  "billing": "string",  "message": "string"}