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

# Delete Thread

`DELETE /v0/pods/{pod_id}/threads/{thread_id}`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/pods/{pod_id}/threads/{thread_id}`
- Auth: HTTP bearer

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 pods:threads delete --pod-id <pod_id> --thread-id <thread_id>
```

## Path parameters

- `pod_id` string, required: ID of pod.
- `thread_id` string, required: ID of thread.

## Query parameters

- `permanent` boolean, nullable

## Response `204`

## Other responses

- `404`

---

[API](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
