gmail.trashMessages moves messages to Trash, where they remain recoverable while Gmail retains them.
Example
Trash newly received messages with a known test marker:Inputs
Inputs accept compatible signals.
Output
Returns aSignal<Array<{ messageId: string; threadId: string; historyId?: string; labelIds: string[] }>> with each message’s updated metadata in input order.
The action operates on individual message IDs. Trashing one message doesn’t explicitly trash every message in its thread.