Skip to main content

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

NameInTypeRequiredDescription
org_idpath`stringnull`yes
X-Org-Idheader`stringnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Operation ID: delete_org_api_organizations__org_id__delete