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

# Delete Tenant

> Delete tenant from the platform (PERMANENT).

**Purpose:** Remove a tenant/organization from the platform

**What it does:**
- Permanently deletes tenant account
- Used when customer cancels service
- Removes all tenant data from the system

**⚠️ WARNING - CASCADE DELETE:**
This operation permanently deletes ALL related data:
- **All agents** created by this tenant
- **Call history and recordings** (all calls)
- **Workflows and integrations** (custom flows, API configs)
- **Files and logs** (knowledge base, activity logs)
- **SIP trunks** (phone number configurations)
- **Squad configurations** (agent teams)

**Use Cases:**
- Customer account cancellation
- Service termination
- Data cleanup after trial expiration

**Recommended Practice:**
- Export/backup tenant data before deletion
- Verify tenant has no active calls/sessions
- Notify customer before deletion
- Consider soft-delete (status=inactive) instead



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json delete /tenants/{tenant_id}
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /tenants/{tenant_id}:
    delete:
      tags:
        - tenants
      summary: Delete Tenant
      description: |-
        Delete tenant from the platform (PERMANENT).

        **Purpose:** Remove a tenant/organization from the platform

        **What it does:**
        - Permanently deletes tenant account
        - Used when customer cancels service
        - Removes all tenant data from the system

        **⚠️ WARNING - CASCADE DELETE:**
        This operation permanently deletes ALL related data:
        - **All agents** created by this tenant
        - **Call history and recordings** (all calls)
        - **Workflows and integrations** (custom flows, API configs)
        - **Files and logs** (knowledge base, activity logs)
        - **SIP trunks** (phone number configurations)
        - **Squad configurations** (agent teams)

        **Use Cases:**
        - Customer account cancellation
        - Service termination
        - Data cleanup after trial expiration

        **Recommended Practice:**
        - Export/backup tenant data before deletion
        - Verify tenant has no active calls/sessions
        - Notify customer before deletion
        - Consider soft-delete (status=inactive) instead
      operationId: delete_tenant_tenants__tenant_id__delete
      parameters:
        - name: tenant_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Tenant Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````