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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Mailbox path, e.g. ["INBOX"] or ["INBOX","Subfolder"] | |
| confirm | No | ||
| accountName | Yes |