Skip to main content
gmail.removeLabel removes labels from messages without deleting the labels.

Example

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

Inputs

Inputs accept compatible signals. Label IDs must match exactly. The action matches display names after trimming surrounding whitespace and ignoring capitalization. If any label doesn’t exist in the selected account, the action fails without modifying the messages.

Output

Returns a Signal<string[]> with 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. It doesn’t affect the label resource or other messages in their threads.