Actions30
- Message Actions
- Label Actions
- Draft Actions
- Thread Actions
Thread → Delete a Thread
AI-generatedSummary
Delete a Thread
Inputs
- threadId (required) — ID of the thread to delete
- fetchOptions.readStatus — Filter by message read status (any, read, unread)
- fetchOptions.search — Simple full‑text search across subject, sender, or body
- fetchOptions.includeBodyValues — Whether to include full email body values in the response
- fetchOptions.downloadAttachments — Download message attachments into binary output
- fetchOptions.attachmentBinaryPrefix — Prefix used for binary property names when downloading attachments
- fetchOptions.includeEmailIds — Include message IDs in the response
- fetchOptions.debug — Include raw JMAP responses for debugging
Output shape
a record containing action, threadId, requested count, and successful flag; may also include before/after state when debug is enabled
Success is indicated by the 'successful' flag; errors are thrown and can be caught via continueOnFail
Examples
Example 1: Delete a thread by ID
threadId = $node["Thread ID"], fetchOptions = {}
Example 2: Delete thread matching a search
threadId = $node["Thread ID"], fetchOptions.readStatus = "any", fetchOptions.search = "project"
Example 3: Delete with download of attachments
threadId = $node["Thread ID"], fetchOptions.downloadAttachments = true, fetchOptions.attachmentBinaryPrefix = "att_"