title: Remove a specific polyline in google map v2
body: <p>I'm drawing polylines in google map v2 using marker drag, this is my code</p>
  
  <pre><code>int startDraw = 1;
  Polyline polyline;
  List&lt;LatLng&gt; lineCordinates = new ArrayList&lt;LatLng&gt;();
  List&lt;Polyline&gt; polylines = new ArrayList&lt;Polyline&gt;();
  
  @Override
  public void onMarkerDrag(Marker marker) {
      // startDraw == 0 --&gt; stop draw
      // startDraw == 1 --&gt; start draw
  
  if (startDraw == 1) {
  
      Integer markerId = markerMapHash.get(marker);
  
      if (markerId == null) {
          markerId = 1;
      }
  
      if (markerId == 1) {
          lineCordinates.add(marker.getPosition());
  
      }
  
  
      for (int i = 0; i &lt; lineCordinates.size(); i++) {
  
          polyline = myMap.addPolyline(new PolylineOptions()
          .addAll(lineCordinates)
          .width(lineWidth)
          .color(lineColor));
  
          polylines.add(polyline);
  
      }
      }
  
     }
  
  
  @Override
  public void onMarkerDragEnd(Marker marker) {
      lineCordinates.clear(); 
      if (startDraw == 1) {
          startDraw = 0;
      }else{
          startDraw = 1;
      }
  
     }
  </code></pre>
  
  <p>and to remove all polylines, this is the code in a button onClick</p>
  
  <pre><code> for(Polyline line : polylines){
    line.remove();
  }
  polylines.clear();
  </code></pre>
  
  <p>Now I want to remove a specific polyline, how can I do this ?
  Hope anyone could help me.
  Thanks in advance.</p>