# Delete SIP inbound trunk

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

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

Permanently deletes a single inbound SIP trunk from the project tied to your API key. After deletion, calls to the trunk's number(s) can no longer be terminated into Nabrah or routed to the bound agent. A successful request returns 204 No Content with no body. Authenticate with the `X-API-Key` header.

## Irreversible

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

## Authorization

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

## Path parameters

- `sip_id` (string, required): The unique identifier of the inbound SIP trunk to delete. Obtain it from the `id` field of GET /api/ext/sip-inbound (list) or GET /api/ext/sip-inbound/{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-inbound/<sip_id>' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/sip-inbound/<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-inbound/<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-inbound/<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))
}
```
