Skip to main content
gmail.onLabelRemoved handles user and system label removals in the connected mailbox.

Example

automations/archive-resolved-email.automation.ts

Options

The watched account can’t change at runtime. Call gmail.onLabelRemoved() without options to use the project binding.

Trigger data

Returns Signal<GmailLabelChange> with the parsed message and labels removed in the same Gmail history change:
See Get message for all Message fields. Use labelId as the stable identity. Gmail omits name when it can no longer resolve a removed label, such as after the user deletes it.