code: public void remove() {
  
          switch (shapeType) {
  
              case MARKER:
                  ((Marker) shape).remove();
                  break;
              case POLYGON:
                  ((Polygon) shape).remove();
                  break;
              case POLYLINE:
                  ((Polyline) shape).remove();
                  break;
              case MULTI_MARKER:
                  ((MultiMarker) shape).remove();
                  break;
              case MULTI_POLYLINE:
                  ((MultiPolyline) shape).remove();
                  break;
              case MULTI_POLYGON:
                  ((MultiPolygon) shape).remove();
                  break;
              case POLYLINE_MARKERS:
                  ((PolylineMarkers) shape).remove();
                  break;
              case POLYGON_MARKERS:
                  ((PolygonMarkers) shape).remove();
                  break;
              case MULTI_POLYLINE_MARKERS:
                  ((MultiPolylineMarkers) shape).remove();
                  break;
              case MULTI_POLYGON_MARKERS:
                  ((MultiPolygonMarkers) shape).remove();
                  break;
              case COLLECTION:
                  @SuppressWarnings("unchecked")
                  List<GoogleMapShape> shapeList = (List<GoogleMapShape>) shape;
                  for (GoogleMapShape shapeListItem : shapeList) {
                      shapeListItem.remove();
                  }
                  break;
              default:
          }
  
      }
docs: Removes all objects added to the map