1// First show what databases have you gotten
2show dbs
3// then, use the database name that you want to drop
4use YOUR_DATABASE_NAME
5// now you can drop it
6db.dropDatabase()
7// show collections should be empty now
8show collections
1use DB_NAME // go to the db you want to delete
2
3db.dropDatabase()
4
5show dbs
6// droppped db will not be shown