bulk_delete
Delete multiple emails in one pass using explicit IDs or search criteria. Choose to permanently expunge or move to Trash, with a dry run option to preview.
Instructions
Delete multiple emails in one pass. Accepts emailIds[] OR match criteria (XOR). permanent:true permanently expunges; false moves to Trash. Use dryRun to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | No | Explicit email IDs. XOR with match. | |
| match | No | Search criteria. XOR with emailIds. | |
| folder | No | Source folder (required with match). | |
| permanent | No | Permanently expunge (irreversible). False = move to Trash. | |
| dryRun | No | ||
| confirmed | No | Required when permanent:true and PROTONMAIL_CONFIRM_DESTRUCTIVE is enabled. | |
| maxBatchSize | No | Maximum number of messages to process. Defaults to 500. Use to prevent runaway operations. |