when I call
db.collection.remove({\'condition\':\'some condition\'});
This one line will delete all the matching condition documents.
db.collection.remove now has a justOne flag
db.collection.remove
justOne
http://docs.mongodb.org/manual/reference/method/db.collection.remove/#db.collection.remove