imap_bulk_delete
Remove multiple emails at once using batched deletion to prevent IMAP connection timeouts during mailbox cleanup.
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. |