Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Remove conversations from groups

Batch disassociate conversations from conversation groups without deleting them using the OpenIM React Native SDK.

Copy

Disassociate one or more conversations from one or more conversation groups. This operation removes group membership only; it does not delete conversations or messages:

await OpenIMSDK.removeConversationsFromGroups({
  conversationIDs: [conversationID],
  conversationGroupIDs: [conversationGroupID],
});

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesList of conversation IDs to remove.
conversationGroupIDsstring[]YesList of target conversation group IDs.

Return value

A resolved Promise confirms that the conversations were detached from the designated groups.

Removal triggers the OnConversationGroupMemberDeleted event. Reconcile local state by locating the group using conversationGroupID and removing the member conversation matching conversationID. For event registration, see Conversation groups overview.