Jul 192011
Remove a document in a collection in MongoDB
Answer:
If you want to remove a document in the test collection, with a key "name" equal to "Peter", you can execute the following command in the MongoDB Interactive Shell.
db.test.remove( { name : "Peter" } )
Done.