Skip to main content
Version: v4

Delete a Group

Delete Group

To delete a group you need to use the deleteGroup() method. The user must be an Admin of the group they are trying to delete.

String GUID = "GUID";

CometChat.deleteGroup(GUID, onSuccess: (String message) {
debugPrint("Deleted Group Successfully : $message ");
}, onError: (CometChatException e) {
debugPrint("Delete Group failed with exception: ${e.message}");
});

The deleteGroup() method takes the following parameters:

ParameterDescription
GUIDThe GUID of the group you would like to delete