DELETE
/
v2
/
messages
/
{messageId}
curl -XDELETE https://qstash.upstash.io/v2/messages/msg_123 \
  -H "Authorization: Bearer <token>"
OK

Cancelling a message will remove it from QStash and stop it from being delivered in the future. If a message is in flight to your API, it might be too late to cancel.

Request

messageId
string
required

The id of the message to cancel.

Response

This endpoint only returns 202 OK