Bulk Cancel Messages
Changed onDelete all pending messages
Request
- Base URLhttps://qstash-eu-central-1.upstash.io
- Auth
- HTTP bearer
- or API key in query parameter qstash_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
A list of message IDs to delete. If provided, other filters are ignored.
Filter messages by URL Group name. Supports multiple values.
Filter messages by Queue name. Supports multiple values.
Filter messages by destination URL. Supports multiple values.
Filter messages by the host of the destination URL. Supports multiple values.
Filter messages by the path of the destination URL. Supports multiple values.
Filter 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
Filter messages by Flow Control Key. Supports multiple values.
Filter messages created after this timestamp (Unix milli, inclusive).
Filter messages created before this timestamp (Unix milli, inclusive).
Filter messages by Schedule ID. Supports multiple values.
Filter messages by the IP address of the publisher. Supports multiple values.
Deprecated. Use callerIp instead.
Only applies to filter-based cancels. If true, the request returns as soon as the bulk action is created, without waiting for it to finish. The response includes the actionId of the bulk action.
Deprecated. This parameter is ignored, and all messages matching the filters are cancelled.
Response
Messages cancelled, or the bulk action is created when async=true.
Changes
- breaking
removed the success response with the status
- info
added the new optional
queryrequest parameterasync - info
queryrequest parametercountwas deprecated - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking
- warning
for the
queryrequest parametercount, the max was set to500.00 - warning
for the
queryrequest parametercount, the min was set to1.00 - info
added the new optional
queryrequest parametercallerIp - info
added the new optional
queryrequest parameterhost - info
added the new optional
queryrequest parameterpath - info
queryrequest parametercallerIPwas deprecated - info
for the
queryrequest parametercallerIP, the type was generalized fromstringtoarray - info
for the
queryrequest parameterflowControlKey, the type was generalized fromstringtoarray - info
for the
queryrequest parameterqueueName, the type was generalized fromstringtoarray - info
for the
queryrequest parameterscheduleId, the type was generalized fromstringtoarray - info
for the
queryrequest parametertopicName, the type was generalized fromstringtoarray - info
for the
queryrequest parameterurl, the type was generalized fromstringtoarray
- warning