driver-legacy/src/main/com/mongodb/DB.java
public void dropDatabase() {
        try {
            getExecutor().execute(new DropDatabaseOperation(getName(), getWriteConcern()), getReadConcern());
        } catch (MongoWriteConcernException e) {
            throw createWriteConcernException(e);
        }
    }
public void dropDatabase() {
        try {
            getExecutor().execute(new DropDatabaseOperation(getName(), getWriteConcern()), getReadConcern());
        } catch (MongoWriteConcernException e) {
            throw createWriteConcernException(e);
        }
    }
public void dropDatabase ( ) { try { getExecutor ( ) . execute ( new DropDatabaseOperation ( getName ( ) , getWriteConcern ( ) ) , getReadConcern ( ) ) ; } catch ( MongoWriteConcernException e ) { throw createWriteConcernException ( e ) ; } }
Drops this database. Removes all data on disk. Use with caution.

@throws MongoException if the operation failed
@mongodb.driver.manual reference/command/dropDatabase/ Drop Database
Drops this database . Removes all data on disk . Use with caution .