bulk_delete
Delete multiple messages in one operation. Move to Trash or permanently expunge with confirmation. Preview using dry run.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Folder containing the messages (default: INBOX). | INBOX |
| 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). | |
| permanent | No | If true, permanently expunge instead of moving to Trash. Requires confirm: true. | |
| confirm | No | Required to be true when permanent is true. Acknowledges the expunge is irreversible. | |
| dryRun | No | When true, preview the exact UIDs that would be deleted without deleting anything (no confirm needed). Recommended before any match-based run. |