MongoDB never creates empty databases. To create there should be at least one collection. There is a single command to switch or create a MongoDB Database.
use DATABASE_NAME
We need to get current database name to verify if it switched correctly or not. To check current database name there is an object of database:
db;
for example:
>db
myTestDB
>
To list all databases use:
show dbs;
To delete/drop databases use:
db.dropDatabase()
Following is the syntax of USE command .db.dropDatabase()