title: MongoTemplate: remove list of elements returned from `find`
body: <p>I am calling <code>MongoTemplate.find(query, type)</code> which returns a <code>List&lt;T&gt;</code>. My question, how do I remove all elements in the list from the DB Collection in one DB call. I know I could create a <code>Query</code> manually using <code>id</code> if I know the structure of <code>T</code> but what if I don't know what <code>T</code> is. </p>
  
  <p><code>MongoTemplate</code> has a <code>remove</code> method that I can pass <code>T</code>. What I need is the equivalent <code>removeAll(Collection&lt;T&gt; items, Class&lt;T&gt; type)</code></p>
  
  <p><strong>EDIT per answer</strong></p>
  
  <p>I need to process each element and determine which ones to remove so I cannot simply pass the <code>Query</code> to <code>remove</code>.</p>