Introduced delete function for groups.