imap_bulk_delete
Delete multiple emails at once in batches to prevent IMAP connection timeouts, using chunking and auto-reconnection for bulk mailbox cleanup.
Instructions
Delete multiple emails at once with chunking and auto-reconnection. Processes deletions in batches to prevent connection timeouts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uids": "<uids>"
},
"name": "imap_bulk_delete"
}
}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. |