Browse SDKs · React Native
SDKsReact NativeEnterprise

Remove conversations from groups

Remove one or more conversations from conversation groups.

Copy

Call removeConversationsFromGroups() to remove one or more conversations from the specified groups.

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

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesConversation IDs to remove.
conversationGroupIDsstring[]YesTarget conversation-group IDs.

Return result

After the call completes, the membership-removal request is complete. Membership changes are delivered through OnConversationGroupMemberDeleted; the callback includes the group and conversation IDs. See Conversation group overview.