batch_delete_emails
Delete multiple emails at once by moving them to trash or permanently removing them. Specify email IDs, folder, and deletion type to manage email cleanup efficiently.
Instructions
Delete multiple emails (move to trash or permanently delete)
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": {
"email_ids": "<email_ids>"
},
"name": "batch_delete_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_ids | Yes | List of email IDs to delete | |
| folder | No | Source folder (default: 'INBOX') | INBOX |
| permanent | No | Permanently delete instead of moving to trash | |
| trash_folder | No | Trash folder name (default: 'Trash') | Trash |
| account_id | No | Specific account ID (recommended) | |
| dry_run | No | If true, only validate without executing (default: false) |