Delete a conversation group
Delete a conversation group and its conversation associations.
Use deleteConversationGroup() to delete a conversation group and its conversation associations. The operation does not delete the conversations or their messages.
await openimsdk.deleteConversationGroup(conversationGroupID);The fixed SDK declaration names the parameter groupID, but it represents a conversationGroupID here. Do not pass an OpenIM chat group ID.
Return result
A successful Promise means that the group deletion request has completed. The method returns no group data for refreshing the UI. Remove the local group by conversationGroupID, then wait for the event or query the group list again and use the latest result.
The related event is OnConversationGroupDeleted. When it arrives, use conversationGroupID to remove the matching group. See Conversation group overview for the complete listener.
Was this page helpful?