# Delete SIP outbound trunk

> DELETE https://api.nabrah.ai/api/ext/sip-outbound/{sip_id}

Group: SIP outbound. Page: https://www.nabrah.ai/en/docs/api-reference/sip-outbound/delete-sip-outbound-trunk

Permanently deletes a single outbound SIP trunk from the project tied to your API key. After deletion, agents can no longer place outbound calls through this trunk. A successful request returns 204 No Content with no body. Authenticate with the `X-API-Key` header.

## Irreversible

Deletion cannot be undone. To restore outbound calling you must create a new trunk via POST /api/ext/sip-outbound.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Path parameters

- `sip_id` (string, required): The unique identifier of the outbound SIP trunk to delete. Obtain it from the `id` field of GET /api/ext/sip-outbound (list) or GET /api/ext/sip-outbound/{sip_id} (single).

## Response

### 204 Successful Response

### 422 Validation Error

Content type: `application/json`

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

## Request examples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.nabrah.ai/api/ext/sip-outbound/<sip_id>' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/sip-outbound/<sip_id>"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.delete(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/sip-outbound/<sip_id>", {
  method: "DELETE",
  headers: { "X-API-Key": "<your-api-key>" },
});

const data = await response.json();
console.log(data);
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("DELETE", "https://api.nabrah.ai/api/ext/sip-outbound/<sip_id>", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
