imap_bulk_delete
Delete multiple emails in batches to avoid connection timeouts. Handles chunking and auto-reconnection automatically.
Instructions
Delete multiple emails at once with chunking and auto-reconnection. Processes deletions in batches to prevent connection timeouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Array of email UIDs to delete | |
| folder | No | Folder name | INBOX |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| chunkSize | No | Number of emails to delete per batch (default: 50) | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. |