Mail: Delete messages
mail_delete_batchDelete messages you name by id — one call, one confirmation, however many ids. By default they go to Trash, which is reversible: they stay there until the Trash is emptied. Pass permanent=true to erase them from the server instead, with no undo and no second copy; that is the only way to erase mail that is not already in Trash, because an IMAP move gives the destination copy a new uid that nothing can address afterwards. Messages already sitting in Trash or Spam are reported back rather than moved again. Ids come from mail_list_messages or mail_get_cleanup_summary. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"message_ids": "<message_ids>"
},
"name": "mail_delete_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| permanent | No | ||
| message_ids | Yes |