bulk_delete
Delete multiple emails at once. Moves to trash by default; optionally permanently deletes and expunges.
Instructions
Delete multiple messages at once.
If permanent=False (default), moves to Trash (discovered via \Trash SPECIAL-USE with localized fallbacks). If permanent=True or no Trash folder is found, marks +FLAGS \Deleted and EXPUNGEs immediately.
Deleting from within the Trash folder is always permanent regardless of the flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| email_ids | Yes | ||
| permanent | No |