Added delete polygons code