> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# threads_delete

> Permanently delete a thread and every message in it. This cannot be undone; threads_trash is the reversible one.

<div className="tool-route"><span className="tool-row-method" data-method="DELETE">DELETE</span><code>{"https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}"}</code></div>

```python gmail_threads_delete.py theme={null}
from charter.packs import gmail

result = await gmail.threads_delete.ainvoke({"id": ...})
```

<Note>
  Requires `https://mail.google.com/`. Costs 20 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                      | Type     | Description                                                                                                                                                    |
  | ---------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `userId`                                                   | `string` | The user's email address. The special value 'me' can be used to indicate the authenticated user. <span className="field-constraints">defaults to `"me"`</span> |
  | `id` <span className="required" title="required">\*</span> | `string` | ID of the Thread to delete.                                                                                                                                    |
</div>
