Remove a message from the conversation

DELETE /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}

A Service Message resource represents a message in a conversation within a specific service.

Remove a message from the conversation

Headers

  • X-Twilio-Webhook-Enabled string

    The X-Twilio-Webhook-Enabled HTTP request header

    Values are true or false.

Path parameters

  • ChatServiceSid string Required

    The SID of the Conversation Service the Participant resource is associated with.

  • ConversationSid string Required

    The unique ID of the Conversation for this message.

  • Sid string Required

    A 34 character string that uniquely identifies this resource.

Responses

  • 204

    The resource was deleted successfully.

DELETE /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
curl \
 -X DELETE https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} \
 --user "username:password" \
 -H "X-Twilio-Webhook-Enabled: true"