Delete message
Individual chat messages
Path parameters
-
The SID of the Service to delete the resource from.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
. -
The unique ID of the Channel the message to delete belongs to. Can be the Channel resource's
sid
orunique_name
.Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CH[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies 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
/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
curl \
--request DELETE 'https://chat.twilio.com/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}' \
--user "username:password"