delete_thread
Delete an entire email thread by providing a Message-ID. Choose between soft-delete (Trash) or permanent deletion, with optional cross-folder and dry-run modes.
Instructions
Delete every message in a thread. Default soft-deletes to Trash; permanent:true expunges. acrossFolders:false by default for safety. dryRun:true previews.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messageId": "<messageId>"
},
"name": "delete_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | RFC 5322 Message-ID of any message in the thread (e.g. `<abc@example.com>`); the whole reply chain is resolved from it. | |
| permanent | No | When false (default), soft-delete the thread to Trash (recoverable). When true, permanently expunge every message — irreversible. | |
| acrossFolders | No | When false (default), act only within the seed message's folder. When true, walk INBOX + Sent + All Mail so the whole conversation is deleted across folders. | |
| dryRun | No | When true, preview which messages would be deleted (per folder) without deleting anything. Recommended before a real run. |