Browse SDKs · uni-app / uni-app x
SDKsuni-app

Delete a conversation

OpenIM uni-app / uni-app x SDK guide for Delete a conversation.

Copy

deleteConversation() removes one conversation entry without promising to delete its message history.

import { deleteConversation } from '@/uni_modules/unix-openim-sdk'

await deleteConversation(conversationID)

This is distinct from deleting a conversation and all messages. Use this operation when local history is intended to remain. A later incoming message can cause the conversation to appear again.

Promise success means that the delete request completed. Requery the conversation list or merge the later event by conversationID; do not delete cached message state unless the selected product action explicitly includes it.