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
sessionCookiecookie
better-auth.session_token<token>Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.
id*stringOrganization ID
application/json- body
confirmOrganizationId*stringMust equal the id in the path.
Format
uuidOrganization deleted
application/json- response
success?booleanmessage?stringcurl -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"}