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

# Delete SIP Trunk

> Permanently delete a SIP trunk

# Delete SIP Trunk

Permanently delete a SIP trunk. The trunk must have no active calls and no DIDs attached — delete its DIDs first via [Delete SIP Trunk DID](/api-reference/endpoints/delete-sip-trunk-did).

## Endpoint

```
DELETE /api/v1/sip-trunks/{trunk_id}
```

## Path parameters

<ParamField path="trunk_id" type="string" required>SIP trunk UUID.</ParamField>

## Request headers

<ParamField header="Authorization" type="string" required>
  Bearer token. Format: `Bearer talq_your_environment_token_here`
</ParamField>

## Examples

<RequestExample>
  ```bash theme={null}
  curl -X DELETE "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "message": "SIP trunk deleted"
  }
  ```
</ResponseExample>

## Error responses

### 409 — Trunk Has DIDs

<ResponseExample>
  ```json theme={null}
  {
    "success": false,
    "message": "Trunk still has DIDs attached. Delete DIDs before deleting the trunk.",
    "code": "TRUNK_HAS_DIDS"
  }
  ```
</ResponseExample>
