Skip to main content
DELETE
/
v1
/
organization
Delete organization
curl --request DELETE \
  --url https://api.trycomp.ai/v1/organization \
  --header 'X-API-Key: <api-key>'
const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.trycomp.ai/v1/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.trycomp.ai/v1/organization"

headers = {"X-API-Key": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "success": true,
  "deletedOrganization": {
    "id": "org_abc123def456",
    "name": "Acme Corporation"
  }
}
{
"message": "Invalid or expired API key"
}
{
"message": "Organization with ID org_abc123def456 not found"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Response

Organization deleted successfully

success
boolean

Indicates successful deletion

Example:

true

deletedOrganization
object
authType
enum<string>

How the request was authenticated

Available options:
api-key,
session