Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

30409: This message cannot be canceled


ERROR: 30409

error-30409 page anchor
MESSAGING
ERROR

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

possible-causes page anchor
  • 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.
  • 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

additional-resources page anchor