# Delete ticket inbox

> DELETE https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes

Group: Tickets. Page: https://www.nabrah.ai/en/docs/api-reference/tickets/delete-ticket-inbox

Deletes the ticket inbox configuration for the project tied to your API key and returns a boolean indicating success. An inbox is the channel/queue configuration that governs how incoming conversations become tickets (auto-assign rules, allowed ticket types, etc.). Deleting it removes that ticketing configuration; list current inboxes with GET /ticket/inboxes first.

## Effect

- **What is removed**: Removes the ticket inbox config record (its `config` settings such as `auto_assign`, `ticket_types`, `assign_list`, and `lock_to_single_open_ticket`) for the project. Existing tickets are not part of the request body; this operation targets the inbox configuration itself.

Response is a bare boolean: `true` on success.

## Authorization

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

## Response

### 200 Successful Response

Content type: `application/json`

```json
false
```

## Request examples

### cURL

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

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes"
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/omni_v2/ticket/inboxes", {
  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/omni_v2/ticket/inboxes", 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))
}
```
