Added function deleteGroup