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
ReturnsSignal<GmailLabelChange> with the parsed message and labels removed in the same Gmail history change:
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.