Delete message
Individual chat messages
Path parameters
-
The SID of the Service to delete the Message resource from.
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$. -
The SID of the Channel the Message resource to delete belongs to. This value can be the Channel resource's
sidorunique_name. -
The SID of the Message resource to delete.
Minimum length is
34, maximum length is34. Format should match the following pattern:^IM[0-9a-fA-F]{32}$.
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"