delete-mailbox
Permanently remove an email folder and all messages it contains from an Apple Mail account. Use after verifying the exact mailbox name, because this action cannot be undone.
Instructions
Use when: deleting a mailbox/folder from an account. Returns: a confirmation that the mailbox was deleted. Do not use when: renaming it (use rename-mailbox) or deleting messages within it (use delete-message / batch-delete-messages). Safety: destructive — deleting a mailbox removes the folder and any messages it contains. Require explicit user confirmation and use list-mailboxes first to confirm the exact name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| account | No | Account containing the mailbox |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| name | No |