Skip to main content
The dlq.delete method deletes one or more workflow runs from the Dead Letter Queue (DLQ).

Arguments

You can delete DLQ entries by ID, by an array of IDs, or by filters.

By DLQ ID

dlqId
string | string[]
A single DLQ entry ID, or an array of IDs to delete.

By filters

workflowRunId
string
Filter by workflow run ID.
workflowUrl
string
Filter by exact workflow URL.
fromDate
Date | number | string
Delete workflows created after this date. Accepts Date objects, Unix timestamps (number), or numeric strings.
toDate
Date | number | string
Delete workflows created before this date. Accepts Date objects, Unix timestamps (number), or numeric strings.
label
string
Delete workflows with this label.
all
boolean
Delete all DLQ entries.

Response

deleted
number
The number of DLQ entries that were deleted.

Usage

await client.dlq.delete("dlq-123");