email_batch_delete
Delete multiple emails at once by ID to speed up inbox cleanup across Gmail, Outlook, iCloud, or IMAP. Optionally move to trash or permanently delete up to 1,000 messages per call.
Instructions
Delete multiple emails at once. Much faster than individual deletes.
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": {
"accountId": "<accountId>",
"emailIds": "<emailIds>"
},
"name": "email_batch_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | Array of email IDs to delete | |
| accountId | Yes | ||
| permanent | No | Permanently delete instead of moving to trash | |
| sourceFolder | No | Source folder (required for IMAP/iCloud when emails are not in INBOX) |