---
title: "Delete Thread"
method: DELETE
path: "/v0/inboxes/{inbox_id}/threads/{thread_id}"
tags: ["InboxesThreads"]
---

# Delete Thread

`DELETE /v0/inboxes/{inbox_id}/threads/{thread_id}`

Moves the thread to trash by adding a trash label to all messages. If the thread is already in trash, it will be permanently deleted. Use `permanent=true` to force permanent deletion.

**CLI:**
```bash
agentmail inboxes:threads delete --inbox-id <inbox_id> --thread-id <thread_id>
```

## Path parameters

- `inbox_id` string, required — The ID of the inbox.
- `thread_id` string, required — ID of thread.

## Query parameters

- `permanent` boolean, nullable

## Response `204`

## Other responses

- `404`

---

[API](https://skmtc.net/agentmail-to/apis/api-2.md) · [All operations](https://skmtc.net/agentmail-to/apis/api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentmail-to/api-2/revisions/869b7f1c360c/schema)
