DELETE
/
v2
/
dlq
curl -XDELETE https://qstash.upstash.io/v2/dlq \

  -H "Authorization: Bearer <token>" \

  -H "Content-Type: application/json" \

  -d '{

     "dlqIds": ["11111-0", "22222-0", "33333-0"]

    }'
{

  "deleted": 3

}

Delete multiple messages from the DLQ.

You can get the dlqId from the list DLQs endpoint.

Request

dlqIds
string[]
required

The list of DLQ message IDs to remove.

Response

A deleted object with the number of deleted messages.

{

  "deleted": number

}
{

  "deleted": 3

}
curl -XDELETE https://qstash.upstash.io/v2/dlq \

  -H "Authorization: Bearer <token>" \

  -H "Content-Type: application/json" \

  -d '{

     "dlqIds": ["11111-0", "22222-0", "33333-0"]

    }'