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

# Delete Bridge

> Permanently delete a telephony bridge

<ResponseExample>
  ```json Success Response (204) theme={null}
  HTTP/1.1 204 No Content
  ```

  ```json Error Response (404) theme={null}
  {
    "status_code": 404,
    "message": "Bridge not found.",
    "errors": "No bridge exists with the provided slug"
  }
  ```
</ResponseExample>

# Delete Bridge

Permanently delete a telephony bridge by its slug. Once deleted, the bridge and all associated configurations are removed. This action cannot be undone.

<Note>
  **Prerequisites:** Make sure you have your API Token and Org-Handle ready. See [Authentication](/api/get-started/authentication) for details.
</Note>

<Warning>
  Deleting a bridge that has active phone numbers or is actively routing calls will disrupt service. Disconnect all providers and reassign numbers before deleting.
</Warning>

### Path Parameters

| Name | Type   | Required | Description        |
| ---- | ------ | -------- | ------------------ |
| slug | string | Yes      | Unique bridge slug |

<Note>
  You can get the bridge `slug` by hitting the [Get All Bridges](/api/telephony/get-all-bridges) API. The `slug` field in the response is your Bridge Slug.
</Note>

### Headers

| Name          | Type   | Required | Description                     |
| ------------- | ------ | -------- | ------------------------------- |
| Authorization | string | Yes      | API Key format: `Token <token>` |
| Org-Handle    | string | Yes      | Organization domain handle      |

## Common Error Codes

| Status Code | Description                                 |
| ----------- | ------------------------------------------- |
| 204         | No Content - Bridge deleted successfully    |
| 401         | Unauthorized - Invalid or missing API token |
| 403         | Forbidden - Invalid organization handle     |
| 404         | Not Found - Bridge not found                |
| 500         | Internal Server Error - Server-side error   |

## Code Examples

<CodeGroup>
  ```javascript Node.js theme={null}
  const axios = require('axios');

  const headers = {
    'Authorization': 'Token your-api-token',
    'Org-Handle': 'your-org-handle'
  };

  // Delete a bridge
  const deleteBridge = async (slug) => {
    await axios.delete(
      `https://unpod.ai/api/v2/platform/telephony/bridges/${slug}/`,
      { headers }
    );
    console.log(`Bridge '${slug}' deleted successfully`);
  };

  // Example usage
  deleteBridge('sales-bridge-001');
  ```

  ```python Python theme={null}
  import requests

  headers = {
      'Authorization': 'Token your-api-token',
      'Org-Handle': 'your-org-handle'
  }

  def delete_bridge(slug: str):
      """Delete a telephony bridge"""
      url = f'https://unpod.ai/api/v2/platform/telephony/bridges/{slug}/'
      response = requests.delete(url, headers=headers)
      if response.status_code == 204:
          print(f"Bridge '{slug}' deleted successfully")
      else:
          print(f"Error: {response.json()}")

  # Example usage
  delete_bridge('sales-bridge-001')
  ```

  ```bash cURL theme={null}
  # Delete a bridge
  curl -X DELETE "https://unpod.ai/api/v2/platform/telephony/bridges/sales-bridge-001/" \
    -H "Authorization: Token your-api-token" \
    -H "Org-Handle: your-org-handle"
  ```
</CodeGroup>

## Best Practices

1. **Disconnect First**: Always [disconnect the provider from the bridge](/api/telephony/disconnect-provider-from-bridge) before deleting it
2. **Irreversible**: Deletion is permanent - verify the correct `slug` before proceeding
3. **204 Response**: A successful delete returns HTTP 204 with no body - handle this in your code
4. **Error Handling**: Handle 404 gracefully - the bridge may have already been deleted
5. **Pre-check**: Use [Get Bridge by Slug](/api/telephony/get-bridge-by-slug) to verify the bridge exists and check for active numbers before deletion
6. **Security**: Keep API tokens secure and rotate them regularly


## OpenAPI

````yaml DELETE /api/v2/platform/telephony/bridges/{slug}/
openapi: 3.0.3
info:
  title: Unpod API
  description: REST API for Unpod Voice AI Platform
  version: 2.0.0
servers:
  - url: https://unpod.ai/
    description: QA
  - url: https://unpod.ai/
    description: Production
security: []
tags:
  - name: Organisation
  - name: Spaces
  - name: Agents
  - name: Tasks
  - name: Runs
  - name: Call Logs
  - name: Analytics
  - name: Providers
  - name: Bridges
  - name: Numbers
  - name: Trunks
  - name: Telephony
  - name: Billing
paths:
  /api/v2/platform/telephony/bridges/{slug}/:
    delete:
      tags:
        - Bridges
      summary: Delete Bridge
      operationId: deleteBridge
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            example: sales-bridge-001
        - $ref: '#/components/parameters/OrgHandle'
      responses:
        '204':
          description: Bridge deleted successfully - No Content
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - TokenAuth: []
components:
  parameters:
    OrgHandle:
      name: Org-Handle
      in: header
      required: true
      schema:
        type: string
        example: unpod.tv
      description: Organization domain handle
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API token
      content:
        application/json:
          example:
            status_code: 401
            message: Authentication credentials were not provided.
    NotFound:
      description: Resource not found
      content:
        application/json:
          example:
            status_code: 404
            message: Not found.
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: Token <your-api-key>'

````