lib/operations/db_ops.js
function dropDatabase(db, cmd, options, callback) {
  executeCommand(db, cmd, options, (err, result) => {
    // Did the user destroy the topology
    if (db.serverConfig && db.serverConfig.isDestroyed()) {
      return callback(new MongoError('topology was destroyed'));
    }

    if (callback == null) return;
    if (err) return handleCallback(callback, err, null);
    handleCallback(callback, null, result.ok ? true : false);
  });
}
function dropDatabase(db, cmd, options, callback) {
  executeCommand(db, cmd, options, (err, result) => {
    // Did the user destroy the topology
    if (db.serverConfig && db.serverConfig.isDestroyed()) {
      return callback(new MongoError('topology was destroyed'));
    }

    if (callback == null) return;
    if (err) return handleCallback(callback, err, null);
    handleCallback(callback, null, result.ok ? true : false);
  });
}
function dropDatabase ( db , cmd , options , callback ) { executeCommand ( db , cmd , options , ( err , result ) => { // Did the user destroy the topology if ( db . serverConfig && db . serverConfig . isDestroyed ( ) ) { return callback ( new MongoError ( 'topology was destroyed' ) ) ; } if ( callback == null ) return ; if ( err ) return handleCallback ( callback , err , null ) ; handleCallback ( callback , null , result . ok ? true : false ) ; } ) ; }
Drop a database, removing it permanently from the server.

@method
@param {Db} db The Db instance to drop.
@param {Object} cmd The command document.
@param {Object} [options] Optional settings. See Db.prototype.dropDatabase for a list of options.
@param {Db~resultCallback} [callback] The results callback
Drop a database removing it permanently from the server .