Skip to main content
removeLabel removes one label from Gmail messages without deleting the label itself. Use it to clear a workflow stage or classification while leaving the label available elsewhere in the mailbox.

Example

Remove the Triage label from each newly received message:
The label must exist in the selected Gmail account.

Inputs

Every input field also accepts a compatible Signal; the example passes email.messageId directly. Label IDs must match exactly. Display names are matched after trimming surrounding whitespace and ignoring capitalization. If the label does not exist in the selected account, the action fails without modifying the messages.

Output

The action returns a Signal<string[]> containing the modified message IDs in input order. Removing a Gmail system label changes the corresponding state: for example, removing INBOX archives a message and removing UNREAD marks it as read. The action affects only the supplied messages, not the label resource or every message in their threads.