mongo //will start the mongodb shell
show dbs //will list existing databases
use // is the database you'd like to drop
db //should show just to be sure I'm working with the right database
db.dropDatabase() //will delete the database and return { "dropped" : "", "ok" : 1 }
Monday, February 2, 2015
[mongo] delete all data in database
Subscribe to:
Posts (Atom)