---
title: "Cancel message"
method: DELETE
path: "/notifications/{message_id}?app_id={app_id}"
---

# Cancel message

`DELETE /notifications/{message_id}?app_id={app_id}`

Stop a scheduled or currently outgoing message.

## Path parameters

- `message_id` string, required
- `app_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

200

- object
  - `success` boolean — Indicates if the message was successfully canceled.

## Other responses

- `400` — 400
- `404` — The notification was not found, or it is older than the retention window and its audience activity has been purged.
- `429` — Rate limit exceeded. Wait the number of seconds in the `Retry-After` header before retrying.
- `503` — Service temporarily unavailable. Retry after a short backoff. The body may be empty or non-JSON in some failure modes.

---

[API](https://skmtc.net/onesignal/apis/api-onesignal-com.md) · [All operations](https://skmtc.net/onesignal/apis/api-onesignal-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onesignal/api-onesignal-com/versions/0fc223f7e338/schema)
