> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-vector.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Message

> This endpoint cancels a message. 

<Note>
  We will no longer try to deliver this message to any endpoints. All scheduled
  executions of this message will be canceled as well.
</Note>

## Request

<ParamField path="messageId" type="string" required>
  The unique id of the message.
</ParamField>

<RequestExample>
  ```shell curl
  curl -X DELETE https://qstash.upstash.io/v1/messages/:messageId \
    -H "Authorization: Bearer <token>"
  ```
</RequestExample>

<ResponseExample>
  ```json 202
  { "status": "accepted" }
  ```
</ResponseExample>
