Browse SDKs · Flutter
SDKsFlutterEnterprise

Delete a conversation group

Delete a conversation group with the OpenIM Flutter SDK.

Copy

Use deleteConversationGroup() to delete a specified conversation group and its conversation relationships. This operation does not delete the conversations or messages in that group.

await OpenIM.iMManager.conversationGroupManager.deleteConversationGroup(
  conversationGroupID: conversationGroupID,
);

conversationGroupID is a conversation-group ID, not an OpenIM chat-group ID.

Result

The pinned Flutter declaration returns an unspecified Future. Success means that the deletion request completed. You can remove the local group by conversationGroupID immediately, then reconcile through onConversationGroupDeleted or another query.

For the complete listener, see Conversation groups overview.