code: public void remove() {
          if (polyline != null) {
              polyline.remove();
              polyline = null;
          }
          for (Marker marker : markers) {
              marker.remove();
          }
      }
docs: Remove from the map