---
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}`

Permanently deletes a thread and all of its messages.

**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.

## Response `204`

## Other responses

- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 1 warning, 3 info
  - deleted the `query` request parameter `permanent`
  - added the optional property `code` to the response with the `404` status
  - added the optional property `docs` to the response with the `404` status
  - added the optional property `fix` to the response with the `404` status
- **2026-03-31** `27965096e618` — 1 info
  - added the new optional `query` request parameter `permanent`
- **2026-03-28** `8a5b5e92ae2d` — 1 warning
  - deleted the `query` request parameter `permanent`
- **2026-03-06** `baa72f4bdda4` — 1 info
  - added the new optional `query` request parameter `permanent`

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/:inbox_id/threads/:thread_id/delete.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
