Bulk Remove Label from Emails
bulk_remove_labelRemove a label from multiple emails while keeping them in their original folders. Specify UIDs from the label's own UID space.
Instructions
Remove a label from multiple emails. Emails are removed from Labels/{label} but remain in their original folders. The UIDs passed must be the UIDs inside Labels/{label} — Labels/ folders have their own UID space, so INBOX UIDs will silently miss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label name to remove | |
| emailIds | Yes | Array of UIDs inside Labels/{label} | |
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | ||
| failed | Yes | ||
| success | Yes |