code: function(marker) {
          if (this.markers && this.markers.length) {
              OpenLayers.Util.removeItem(this.markers, marker);
              marker.erase();
          }
      }
docs: APIMethod: removeMarker
  
  Parameters:
  marker - {<OpenLayers.Marker>}