Unitalk Gmail icon

Unitalk Gmail

Consume the Gmail API with Unitalk

Message → Remove Label

AI-generated

Summary

Remove specified labels from a Gmail message (by ID) and return the modified message.

Inputs

  • messageId (required) — The ID of the message from which to remove labels
  • labelIds (required) — One or more labels to remove (can be selected from a list or provided via expression)

Output shape

The modified message resource as returned by the Gmail API's messages.modify endpoint

For each input item, the node returns the message object with the specified labels removed

Examples

Example 1: Remove 'INBOX' and 'UNREAD' labels from a message

Set Message ID to the target message's ID and Label Names or IDs to ['INBOX', 'UNREAD'}] || [{

Example 2: Remove a label using its ID

Set Message ID to the target message's ID and Label Names or IDs to the label ID (e.g., 'Label_2')

Links

Discussion