Skip to content

Delete organization

DELETE
/v1/organization
curl --request DELETE \
--url https://api.varman.io/v1/organization \
--header 'X-API-Key: <X-API-Key>'

Permanently deletes the authenticated organization. This action cannot be undone.

Organization deleted successfully

Media typeapplication/json
object
success

Indicates successful deletion

boolean
deletedOrganization
object
id

The deleted organization ID

string
name

The deleted organization name

string
authType

How the request was authenticated

string
Allowed values: api-key session

Example

{
"success": true,
"deletedOrganization": {
"id": "org_abc123def456",
"name": "Acme Corporation"
},
"authType": "api-key"
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Organization not found

Media typeapplication/json
object
message
string

Example

{
"message": "Organization with ID org_abc123def456 not found"
}