Delete message

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

Individual chat messages

Path parameters

  • ServiceSid string Required

    The SID of the Service to delete the 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 unique ID of the Channel the message to delete belongs to. Can be the Channel resource's sid or unique_name.

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

  • Sid string Required

    The Twilio-provided string that uniquely identifies 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 /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
curl \
 --request DELETE 'https://chat.twilio.com/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}' \
 --user "username:password"