Modifying a Conversation, Message, or Participant
You can modify certain objects in the Conversations SDK (i.e. Conversation, Message, Participant) for connected Users with appropriate permissions.
You can update a Conversation object by calling one of the appropriate methods for your chosen language.
For the Conversation, Message, or Participant data object, you could update some specific properties. Please refer to Update a Conversation, Message or Participant code sample.
You can delete a Conversation object by calling the appropriate method for your chosen language. When you remove a Conversation object, all its Messages, attached Media, and Participants will be deleted.
If you want to only delete a Message from a Conversation, call the specific method to remove it from the Conversation, and destroy any attached Media.
If you want to only delete a Participant from a Conversation, call the specific method to remove them from the Conversation.
Please note that when you delete a parent object, you will also delete its child object. For example, if you remove a Conversation, then all Messages and Participants will be automatically deleted. Once deleted, these resources are unrecoverable.
Congratulations! 🎉 You've finished the getting started guides. Now, let’s explore more Conversations SDK guides:
- Learn about the Best Practices using the Conversations SDK.
- Read about Error Handling and Diagnostic to help you debug your application.
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.