Browse SDKs · uni-app / uni-app x
SDKsuni-appEnterprise

Remove conversations from groups

OpenIM uni-app / uni-app x SDK guide for Remove conversations from groups.

Copy

removeConversationsFromGroups() Commercial uses the same membership parameters as the add operation.

Parameters

ParameterTypeRequiredDescription
conversationIDsstring[]YesConversations to remove.
conversationGroupIDsstring[]YesGroups from which to remove them.
import { removeConversationsFromGroups } from '@/uni_modules/unix-openim-sdk'

await removeConversationsFromGroups({
  conversationIDs: [conversationID],
  conversationGroupIDs: ['group_a'],
})

Both arrays must be non-empty and deduplicated. Removing membership does not delete a conversation or its messages and does not affect that conversation's membership in other groups.

Return result

The Promise resolves directly to a string result, meaning the request completed rather than proving that the local snapshot is updated. Process onConversationGroupMemberDeleted or requery the group. Let the server's final state handle a repeated removal; do not retry forever or fabricate local success after failure.