Delete messages (bulk)
bulk_deleteDelete multiple Proton Mail messages at once by UID or search match; preview with dryRun, move to Trash by default, or permanently expunge with confirm.
Instructions
Delete multiple messages in one operation. Provide EITHER uids OR match. By default soft-deletes to Trash; pass permanent: true to expunge. permanent: true ALSO requires confirm: true (the expunge is irreversible — there is no Trash to recover from). dryRun: true previews without deleting and needs no confirmation. Proton removes the star (\Flagged) from messages moved to Trash (seen live); star them again after restoring if needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bulk_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | No | Explicit UIDs to delete, scoped to `folder`. Mutually exclusive with `match`. For destructive cleanup, explicit UIDs are safer than a content match (which can lag). | |
| match | No | Search criteria selecting messages to delete. Mutually exclusive with `uids`. Prefer from:/date filters over subject/body (Proton's content index lags ~30–60s, so a subject/body match can silently miss recent mail). | |
| dryRun | No | When true, preview the exact UIDs that would be deleted without deleting anything (no confirm needed). Recommended before any match-based run. | |
| folder | No | Folder containing the messages (default: INBOX). | INBOX |
| confirm | No | Required to be true when permanent is true. Acknowledges the expunge is irreversible. | |
| permanent | No | If true, permanently expunge instead of moving to Trash. Requires confirm: true. |