Delete organization
DELETE
/v1/organization
const url = 'https://api.varman.io/v1/organization';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
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"}