code: function(index, range) {
          if(!lang.isNumber(range)) {
              range = 1;
          }
          if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
              var recordsToDelete = this.getRecords(index, range);
              // Copy data from each Record for the event that gets fired later
              var deletedData = [];
              
              for(var i=0; i<recordsToDelete.length; i++) {
                  deletedData[deletedData.length] = widget.DataTable._cloneObject(recordsToDelete[i]);
              }
              this._deleteRecord(index, range);
  
              this.fireEvent("recordsDeleteEvent",{data:deletedData,index:index});
              YAHOO.log(range + "Record(s) deleted at index " + index +
                      " and containing data " + lang.dump(deletedData), "info", this.toString());
  
              return deletedData;
          }
          else {
              YAHOO.log("Could not delete Records at index " + index, "error", this.toString());
              return null;
          }
      }
docs: Removes the Record at the given position index from the RecordSet. If a range
  is also provided, removes that many Records, starting from the index. Length
  of RecordSet is correspondingly shortened.
  
  @method deleteRecords
  @param index {Number} Record's RecordSet position index.
  @param range {Number} (optional) How many Records to delete.
  @return {Object[]} An array of copies of the data held by the deleted Records.