# 30409: This message cannot be canceled

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when you try to cancel a message that is no longer in the `scheduled` state. Twilio lets you cancel a scheduled message by updating the `Message` resource and setting `Status` to `canceled`. The `canceled` status applies only to messages scheduled with a Messaging Service.

### Possible causes

* You attempted to cancel the message after it had already moved past `scheduled`. Cancellation applies only to scheduled messages, so this is the only point at which cancellation is available.
* The message was not created as a scheduled message with a Messaging Service. The `canceled` status is only available for scheduled messages sent with a Messaging Service.
* The message had already reached a later lifecycle state such as `queued`, `sending`, `sent`, `delivered`, `failed`, or `undelivered`. In that case, canceling it through the `Message` resource is no longer available.

### Possible solutions

* Cancel the message while it is still `scheduled` by updating the `Message` resource and setting `Status` to `canceled`.
* Check the current `Status` of the `Message` resource before sending the cancellation request. If the status is no longer `scheduled`, create a new message instead of trying to cancel the existing one.
* Use Messaging Service scheduled messages when you need cancellation support, since the documented cancellation flow applies to that message type.

#### Additional resources

* [Message Scheduling](/docs/messaging/features/message-scheduling)
* [Message resource](/docs/messaging/api/message-resource)
* [Debugging Common Issues with SMS](/docs/messaging/guides/debugging-common-issues)
