This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 16.8, “How to delete documents in a MongoDB with Casbah.”
You want to delete one or more documents in a MongoDB collection.
findAndRemove method of the Casbah
MongoCollection class to delete one document at a time, or use the
remove method to delete one or more documents at a time.