Delete message

DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}

Individual chat messages

Headers

  • X-Twilio-Webhook-Enabled string

    The X-Twilio-Webhook-Enabled HTTP request header

    Values are true or false.

Path parameters

  • ServiceSid string Required

    The SID of the Service to delete the Message resource from.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

  • ChannelSid string Required

    The SID of the Channel the Message resource to delete belongs to. This value can be the Channel resource's sid or unique_name.

  • Sid string Required

    The SID of the Message resource to delete.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IM[0-9a-fA-F]{32}$.

Responses

  • 204

    The resource was deleted successfully.

DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
curl \
 --request DELETE 'https://chat.twilio.com/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}' \
 --user "username:password" \
 --header "X-Twilio-Webhook-Enabled: true"