cURL
curl --request DELETE \ --url http://sandbox.mintlify.com/organizations/{id} \ --header 'Authorization: Bearer <token>'
⚠️ SECURITY: Only the organization OWNER can delete the organization. This action is PERMANENT and cannot be undone. All members, invites, and data will be deleted.
Bearer <token>
id
curl -X DELETE http://localhost:3001/api/organizations/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer <your_token>"
Status: 204 No Content
{ "statusCode": 403, "message": "Access denied. Only the organization owner can delete the organization" }
{ "statusCode": 404, "message": "Organization not found" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
<token>
Organization deleted permanently. All associated data removed.