Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Remove conversations from groups

Remove one or more conversations from specified conversation groups using the OpenIM Flutter SDK.

Copy

Remove specified conversations from one or more conversation groups. This operation dissolves category links; it does not delete conversations or clear message history.

Parameters

ParameterTypeRequiredDescription
conversationGroupIDsList<String>YesList of target conversation group IDs.
conversationIDsList<String>YesList of conversation IDs to remove from the groups.

Code example

await OpenIM.iMManager.conversationGroupManager.removeConversationsFromGroups(
  conversationGroupIDs: [conversationGroupID],
  conversationIDs: [conversationID],
);

Return value

A successful Future indicates that the disassociation request was processed by the server. The client updates the local conversation list within each group using conversationGroupID and conversationID as composite keys.

State changes after the call

Multi-device synchronization and arriving changes trigger onConversationGroupMemberDeleted notifications. For complete listener integration, see Conversation groups overview.