Added content to deleteGroups, but have not tested.