code: function () {
              var series = this,
                chart = series.chart,
                issue134 = /AppleWebKit\/533/.test(userAgent),
                destroy,
                i,
                data = series.data || [],
                point,
                prop,
                axis;
  
              // add event hook
              fireEvent(series, 'destroy');
  
              // remove all events
              removeEvent(series);
  
              // erase from axes
              each(series.axisTypes || [], function (AXIS) {
                  axis = series[AXIS];
                  if (axis) {
                      erase(axis.series, series);
                      axis.isDirty = axis.forceRedraw = true;
                  }
              });
  
              // remove legend items
              if (series.legendItem) {
                  series.chart.legend.destroyItem(series);
              }
  
              // destroy all points with their elements
              i = data.length;
              while (i--) {
                  point = data[i];
                  if (point && point.destroy) {
                      point.destroy();
                  }
              }
              series.points = null;
  
              // Clear the animation timeout if we are destroying the series during initial animation
              clearTimeout(series.animationTimeout);
  
              // destroy all SVGElements associated to the series
              each(['area', 'graph', 'dataLabelsGroup', 'group', 'markerGroup', 'tracker',
                  'graphNeg', 'areaNeg', 'posClip', 'negClip'], function (prop) {
                  if (series[prop]) {
  
                      // issue 134 workaround
                      destroy = issue134 && prop === 'group' ?
                        'hide' :
                        'destroy';
  
                      series[prop][destroy]();
                  }
              });
  
              // remove from hoverSeries
              if (chart.hoverSeries === series) {
                  chart.hoverSeries = null;
              }
              erase(chart.series, series);
  
              // clear all members
              for (prop in series) {
                  delete series[prop];
              }
          }
docs: Clear DOM objects and free up memory