SDKsiOS
Delete a conversation and its messages
Delete a specified conversation and all of its messages with OpenIM iOS SDK.
Call this API when the product action means “Delete this chat”:
[[OIMManager manager] deleteConversationAndDeleteAllMsg:conversationID
onSuccess:nil
onFailure:nil];After success, clear the current message list and remove the conversation row. This operation does not delete a friend relationship, leave a group, or dismiss a group. If the chat target still exists, a new message or synchronization can recreate the conversation. Reconcile the result through the conversation delegate or a subsequent query.
Was this page helpful?