mail_delete_mailbox
Permanently delete a mailbox or folder and all its contents. Requires explicit confirmation. May fail for cloud-synced accounts (iCloud, Exchange, IMAP) due to Mail.app limitations.
Instructions
[IRREVERSIBLE] Permanently delete a mailbox/folder and everything in it. Known to be unreliable for cloud-synced accounts (iCloud/Exchange/IMAP) due to a Mail.app scripting limitation — may fail with PLATFORM_LIMITATION. Requires confirm:true.
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": {
"accountName": "<accountName>",
"path": "<path>"
},
"name": "mail_delete_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Mailbox path, e.g. ["INBOX"] or ["INBOX","Subfolder"] | |
| confirm | No | ||
| accountName | Yes |