Browse SDKs · React Native
SDKsReact Native

Delete a conversation and its messages

Delete a conversation and the current account's messages in it.

Copy

Call deleteConversationAndDeleteAllMsg() to delete the conversation record and the current account's messages in it.

await OpenIMSDK.deleteConversationAndDeleteAllMsg(conversationID);

Parameters

conversationID is the ID of the conversation to delete.

Return result

After the call completes, remove the conversation and its messages from the current screen. If OnConversationChanged is received later, update the list by conversationID. See Retrieve the conversation list for listener details.