# DELETE /api/v1/inboxes/:id/threads/:threadId

Auth: Bearer

HTML: https://cooperemail.com/docs/reference/delete-thread

## Summary

Delete every message in the thread, plus stored raw RFC822, cached attachment text, attachment bytes, and search rows. Owner tasks and updates stay. Returns {id, deleted:true, messages_deleted}. Unknown thread returns 404 thread_not_found.

## Request

This call has no JSON body.

## Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

## Errors

- HTTP 404 thread_not_found

The live `message` is the sentence for that code. Branch on `code`.

```json
{
  "error": {
    "type": "not_found",
    "code": "thread_not_found",
    "docs_url": "https://cooperemail.com/docs#thread_not_found"
  }
}
```

## Idempotency

This route does not document Idempotency-Key or client_id.
