title: Removing all embedded documents
body: <p>I want to remove all embedded documents from a collection, but I can't figure out how to do that. </p>
  
  <p>I have tried a few ways, but I think this one should work:</p>
  
  <pre><code>Products.update({_id: data._id}, { $pull : { orders : {$gte: 0} } });
  </code></pre>
  
  <p>Products is the collection, orders is the array with embedded documents.</p>
  
  <p>Remove all <code>orders</code> where the index is greater or equal than 0. </p>
  
  <p>No luck.</p>