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"
},
"authType": "api-key"
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}Organization
Delete organization | Comp AI API
Permanently deletes the authenticated organization. This action cannot be undone.
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"
},
"authType": "api-key"
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}Authorizations
API key for authentication
Was this page helpful?

