delete_mailbox
Delete an empty mailbox, folder, or Gmail label directly on its mail server without Mail’s confirmation; move messages out first if the mailbox is not empty.
Instructions
Delete an empty mailbox (a folder, or a Gmail label) on its mail server, without Mail's confirmation. Mail lets no app do this, so Timbre does it on the server itself: the first time in an account, a window on the Mac asks the user for the account's password, once (kept in the keychain; you never see it). Only a mailbox the server says is empty is deleted: move its messages out first with move_mail, which can be undone. Never an account's inbox, sent mail, drafts, trash or junk, nor the provider's own folders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Its account, when the name exists in several accounts. | |
| mailbox | Yes | The mailbox (folder, or Gmail label) to delete: its name or path, as list_mailboxes or Mail shows it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| account | Yes | ||
| mailbox | Yes | As Mail shows it. | |
| on_server | Yes | Its path on the server. |