lib/gridfs/grid_store.js
function(self, options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }

  options = options || self.writeConcern;

  if (self.fileId != null) {
    self.chunkCollection().remove({ files_id: self.fileId }, options, function(err) {
      if (err) return callback(err, false);
      callback(null, true);
    });
  } else {
    callback(null, true);
  }
}
function(self, options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }

  options = options || self.writeConcern;

  if (self.fileId != null) {
    self.chunkCollection().remove({ files_id: self.fileId }, options, function(err) {
      if (err) return callback(err, false);
      callback(null, true);
    });
  } else {
    callback(null, true);
  }
}
function ( self , options , callback ) { if ( typeof options === 'function' ) { callback = options ; options = { } ; } options = options || self . writeConcern ; if ( self . fileId != null ) { self . chunkCollection ( ) . remove ( { files_id : self . fileId } , options , function ( err ) { if ( err ) return callback ( err , false ) ; callback ( null , true ) ; } ) ; } else { callback ( null , true ) ; } }
Deletes all the chunks of this file in the database.

@ignore
Deletes all the chunks of this file in the database .