Delete org
DELETE /api/organizations/{org_id}
Delete an organization. This endpoint permanently deletes an organization and all associated data including organization members, conversations, billing data, and external LiteLLM team resources. Access requires the DELETE_ORGANIZATION permission, which is granted only to owners. Args: org_id: Organization ID to delete (UUID) user_id: Authenticated user ID (injected by require_permission dependency) Returns: dict: Confirmation message with deleted organization details Raises: HTTPException: 401 if user is not authenticated HTTPException: 403 if user lacks DELETE_ORGANIZATION permission HTTPException: 404 if organization not found HTTPException: 500 if deletion fails
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | `string | null` | yes |
X-Org-Id | header | `string | null` | no |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
Operation ID: delete_org_api_organizations__org_id__delete