import { Client } from "@upstash/qstash";
const client = new Client({ token: "<QSTASH_TOKEN>" });
// using an array of dlqIds
const result = await client.dlq.delete(["dlqId-1", "dlqId-2", "dlqId-3"]);
// or using an object with dlqIds
const result2 = await client.dlq.delete({
dlqIds: ["dlqId-1", "dlqId-2", "dlqId-3"],
});
console.log(result.deleted); // number of deleted messages