Reputation: 626
Mongodb noob questions!
I want to do something similar to rake db:drop but in mongodb, to clear out the contents of my document.
So far I've found the command db.dropDatabase() but is it right that I have to enter it from the mongodb interactive shell? (Any tips on how to enter the shell would be appreciated, I tried following the instructions over at the Mongodb site but I couldn't get it up and running).
Is there a simpler way to do this from the command line?
Edit: I tried typing mongo
and the shell popped up lol.
Upvotes: 3
Views: 3431
Reputation: 673
There is a ton of information on the shell here: http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell
But to Drop a mongodb its .Drop()
Upvotes: 0