title: Use MongoDB db.collection.remove(query) in java
body: <p>Is there a way in the MongoDB Java driver to call the <code>db.collection.remove(query)</code> method that I see in the MongoDB shell documentation?
  That is, I know the exact criteria that I need to find all the documents I want to delete from MongoDB, but I can't find a way to make one call to remove those records in one trip. All that I can figure out is to find the documents and then delete them one by one.</p>
  
  <p>I see this
  <a href="http://docs.mongodb.org/manual/reference/method/db.collection.remove/" rel="nofollow">http://docs.mongodb.org/manual/reference/method/db.collection.remove/</a>
  which implies there should be a way to do it, but I can't figure out the Java calls to get me that to that call.</p>
  
  <p>Thank you for your help</p>