ทิ้ง mongo ฐานข้อมูล
// First show what databases have you gotten
show dbs
// then, use the database name that you want to drop
use YOUR_DATABASE_NAME
// now you can drop it
db.dropDatabase()
// show collections should be empty now
show collections
ทิ้ง mongodb ฐานข้อมูล
db.dropDatabase()
mongodb ทิ้ง db
db.dropDatabase()
ยังไงต้องวาง db ใน mongo เชลล์
use DB_NAME // go to the db you want to delete
db.dropDatabase()
show dbs
// droppped db will not be shown