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. To confirm the current list, query it again and use the latest result.
Was this page helpful?