code changes to delete the group