SDKsuni-appEnterprise
Delete a conversation group
OpenIM uni-app / uni-app x SDK guide for Delete a conversation group.
deleteConversationGroup() Commercial deletes one conversation group. The required conversationGroupID must come from the current account's group snapshot, not a name or array index.
import { deleteConversationGroup } from '@/uni_modules/unix-openim-sdk'
await deleteConversationGroup({ conversationGroupID: groupID })Return result
The Promise resolves directly to a string result, meaning the deletion request completed. Deleting a group does not delete its conversations, messages, or the underlying conversation records.
Ask for confirmation in the UI. After success, use onConversationGroupDeleted or a new query to remove the local group and membership indexes by conversationGroupID. Do not hide the group before a failed Promise, and prefer a new snapshot when event and local state disagree.
Was this page helpful?