bulk_delete
Delete multiple emails at once. Moves to trash by default; optionally permanently deletes and expunges.
Instructions
Delete multiple messages at once.
If permanent=False (default), moves to Trash (discovered via \Trash SPECIAL-USE with localized fallbacks). If permanent=True or no Trash folder is found, marks +FLAGS \Deleted and EXPUNGEs immediately.
Deleting from within the Trash folder is always permanent regardless of the flag.
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": {
"folder": "<folder>",
"email_ids": "<email_ids>"
},
"name": "bulk_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| email_ids | Yes | ||
| permanent | No |