Skip to main content
DELETE
/
v2
/
dlq
Bulk Delete DLQ messages
curl --request DELETE \
  --url https://qstash-{region}.upstash.io/v2/dlq \
  --header 'Authorization: Bearer <token>'
{
  "cursor": "<string>",
  "deleted": 123
}
For multi-value filters, a message matches if its value equals any of the given values (OR logic), and multiple filters are combined with AND logic.Multiple values can be passed either by repeating the query parameter (label=label_1&label=label_2) or as a single comma-separated value (label=label_1,label_2).

Authorizations

Authorization
string
header
required

QStash authentication token

Query Parameters

dlqIds
string[]

List of DLQ IDs to delete. If provided, other filters are ignored.

cursor
string

By providing a cursor you can paginate through all of the messages in the DLQ

messageId
string

Filter DLQ messages by message ID

url
string[]

Filter DLQ messages by destination URL. Supports multiple values.

topicName
string[]

Filter DLQ messages by URL Group name. Supports multiple values.

scheduleId
string[]

Filter DLQ messages by schedule ID. Supports multiple values.

queueName
string[]

Filter DLQ messages by queue name. Supports multiple values.

fromDate
integer<int64>

Filter DLQ messages by starting date, in milliseconds (Unix timestamp). This is inclusive.

toDate
integer<int64>

Filter DLQ messages by ending date, in milliseconds (Unix timestamp). This is inclusive.

responseStatus
integer[]

Filter DLQ messages by HTTP response status code of the last delivery attempt. Supports multiple values.

callerIp
string[]

Filter DLQ messages by IP address of the publisher. Supports multiple values.

label
string[]

Filter DLQ messages by label. Supports multiple values. You can pass multiple values to match messages with any of the given labels (OR logic).

Examples:

  • label=my_label
  • label=label_1&label=label_2
  • label=label_1,label_2
flowControlKey
string[]

Filter DLQ messages by Flow Control Key. Supports multiple values.

count
integer
default:100

The number of messages to delete.

Required range: x <= 100

Response

200 - application/json

DLQ messages deleted successfully

cursor
string

A cursor which you can use in subsequent requests to paginate through all messages. If no cursor is returned, you have reached the end of the messages.

deleted
integer

The number of messages that were deleted.