> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allomia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Organization

> Soft deletes an organization (marks as inactive)

## Delete Organization

Soft deletes an organization (marks as inactive). This endpoint requires a valid tenant API key for authentication.

### Headers

<ParamField header="Authorization" type="string" required>
  API key is required. Enter your tenant-specific API key in the format 'Bearer
  YOUR-API-KEY'
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the organization to delete
</ParamField>

### Response

<ResponseField name="message" type="string">
  A success message confirming the organization was deleted
</ResponseField>

<ResponseField name="organizationId" type="string">
  The unique identifier of the deleted organization
</ResponseField>

### Example Request

```bash theme={null}
curl -X DELETE https://allomia.com/api/organization/a1b2c3d4-e5f6-7890-abcd-123456789012 \
  -H "Authorization: Bearer YOUR-API-KEY"
```

### Example Response

```json theme={null}
{
  "message": "Organization successfully deleted",
  "organizationId": "a1b2c3d4-e5f6-7890-abcd-123456789012"
}
```
