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

# Delete Thread

`DELETE /v0/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 threads delete --thread-id <thread_id>
```

## Path parameters

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