SDKsWASM
Delete a conversation
Delete a selected conversation record with the WASM SDK.
deleteConversation() deletes only the selected conversation record for the current account. It does not delete messages in that conversation.
await openimsdk.deleteConversation(conversationID);After the Promise succeeds, remove the corresponding conversationID from the current list. This operation does not delete a friendship or leave or dismiss a group. If the chat target still exists, a new message or subsequent synchronization can recreate the conversation. Query the conversation list again when reconciliation is needed.
Was this page helpful?