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.

private String GUID = "GUID";

CometChat.deleteGroup(GUID, new CometChat.CallbackListener<String>() {
@Override
public void onSuccess(String successMessage) {
Log.d(TAG, "Group deleted successfully: ");
}

@Override
public void onError(CometChatException e) {
Log.d(TAG, "Group delete failed with exception: " + e.getMessage());
}
});

The deleteGroup() method takes the following parameters:

ParameterDescription
GUIDThe GUID of the group you would like to delete