Delete thread
delete_threadDelete all messages in an email thread. Soft-deletes to Trash by default; use dryRun to preview or permanent with confirm to expunge irreversibly.
Instructions
Delete every message in a thread. Default soft-deletes to Trash; permanent:true with confirm:true expunges. acrossFolders:false by default for safety. dryRun:true previews. Proton removes the star (\Flagged) from messages moved to Trash (seen live); star them again after restoring if needed.
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 |
|---|---|---|---|
| dryRun | No | When true, preview which messages would be deleted (per folder) without deleting anything. Recommended before a real run. | |
| confirm | No | Required (true) together with `permanent: true`: a permanent delete can't be undone. Ignored for moves to Trash and dry runs. | |
| 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, and requires `confirm: true`. | |
| 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. |