dropDatabase()

Drops the current database and deletes all the associated data files.

Syntax diagram

Read syntax diagramSkip visual syntax diagramdb.dropDatabase( )

Examples

Drop the current database:
db.dropDatabase()