Batch Delete Messages
mailbox_batch_delete_messagesDelete multiple messages from a mailbox at once. Choose whether to move them to Trash or permanently delete, with optional state protection for safe updates.
Instructions
Use this only when the user explicitly asks to delete messages and supplies or confirms the message IDs. Deletion is a mailbox mutation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Message IDs to delete, maximum 100. | |
| permanent | No | When true, permanently deletes instead of moving to Trash. | |
| mailbox_id | No | Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox. | |
| if_in_state | No | Optional message state token for stale-write protection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |