Bulk Delete Emails
bulk_deleteDelete multiple emails by moving them to Trash, keeping them recoverable. Requires confirmation and specifies source folder for non-INBOX UIDs.
Instructions
Alias for bulk_delete_emails. Delete multiple emails by MOVING them to Trash — mail is never permanently deleted and stays recoverable from Trash. Requires { confirmed: true }. Pass sourceFolder whenever the UIDs came from a folder other than INBOX.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | ||
| confirmed | No | Must be true to execute. See requireDestructiveConfirm. | |
| sourceFolder | No | Folder the UID(s) live in (e.g. INBOX, Folders/Work, Labels/Foo). Strongly recommended whenever the UIDs came from a folder other than INBOX — IMAP UIDs are folder-scoped, so without this the wrong folder may be selected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| failed | Yes | ||
| errors | Yes |