Browse SDKs · WASM
SDKsWASMEnterprise

Remove conversations from groups

Remove one or more conversations from selected conversation groups.

Copy

Use removeConversationsFromGroups() to remove conversations from one or more conversation groups. This operation deletes only associations; it does not delete conversations or clear messages.

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesOpenIM conversation IDs to remove.
conversationGroupIDsstring[]YesTarget conversation group IDs.
await openimsdk.removeConversationsFromGroups({
  conversationIDs: [conversationID],
  conversationGroupIDs: [conversationGroupID],
});

Return result

A successful Promise means that the association-removal request has completed. It does not mean that the group-member event has reached every client.

The related incremental event is OnConversationGroupMemberDeleted. Use data.group.conversationGroupID and data.conversationIDs from the event to remove the associations. See Conversation group overview for the complete listener.