code: function(options) {
          var notify = !options || !options.silent;
          var features = this.features;
          if (notify) {
              this.events.triggerEvent(
                  "beforefeaturesremoved", {features: features}
              );
          }
          var feature;
          for (var i = features.length-1; i >= 0; i--) {
              feature = features[i];
              if (notify) {
                  this.events.triggerEvent("beforefeatureremoved", {
                      feature: feature
                  });
              }
              feature.layer = null;
              if (notify) {
                  this.events.triggerEvent("featureremoved", {
                      feature: feature
                  });
              }
          }
          this.renderer.clear();
          this.features = [];
          this.unrenderedFeatures = {};
          this.selectedFeatures = [];
          if (notify) {
              this.events.triggerEvent("featuresremoved", {features: features});
          }
      }
docs: APIMethod: removeAllFeatures
  Remove all features from the layer.
  
  Parameters:
  options - {Object} Optional properties for changing behavior of the
  removal.
  
  Valid options:
  silent - {Boolean} Supress event triggering.  Default is false.