delete_messages
Move specified email messages to the Trash mailbox for recovery. Accepts message IDs and optional account and mailbox to speed up deletion.
Instructions
Delete messages (always moves to the account's Trash mailbox).
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 | |||