delete_messages
Move specified email messages to the account's Trash mailbox. Supports optional account and source mailbox parameters for faster deletion.
Instructions
Delete messages (always moves to the account's Trash mailbox).
Destructive: gated behind user confirmation via MCP elicitation (issue #239), matching delete_rule / delete_mailbox / delete_template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account name (or UUID) the messages live in. Must be provided together with `source_mailbox`. When both are given, the operation is much faster. | |
| permanent | No | Reserved; currently a no-op. Mail.app's AppleScript dictionary exposes no path to permanent-delete that bypasses Trash (issue #111). Passing True emits a DeprecationWarning; messages still go to Trash. Recoverable from the account's Trash mailbox until that mailbox is emptied. | |
| message_ids | Yes | List of message IDs to delete | |
| source_mailbox | No | Optional source mailbox name; see `account`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||