Check out example codes for "drop mongo database". It will help you in understanding the concepts better.

Code Example 1

// First show what databases have you gotten 
show dbs
// then, use the database name that you want to drop
// now you can drop it
// show collections should be empty now
show collections

Code Example 2

use DB_NAME       // go to the db you want to delete


show dbs
// droppped db will not be shown

Learn ReactJs, React Native from