title: How can I delete a data from nested collection?
body: <p>How can I delete a nested collection, for example below, I want to delete id 50d3dbce1292dd2e98af1dd2 from Pic?</p>
  
  <p>Data:</p>
  
  <pre><code>{
      "_id": "50d3dbce1292dd2e98af1dd1",
      "Name": "Bubba",
      "Address": "1111",
      "Pic" : [{"_id": "50d3dbce1292dd2e98af1dd2", "Name": "test1.jpg", "Size":"1000"}, {"_id": "50d3dbce1292dd2e98af1dd3",. "Name": "test2.jpg", "Size":"2000"}],
      "LastModified": {
          "$date": "2012-12-21T03:47:26.535Z"
      }
  }
  </code></pre>
  
  <hr>
  
  <p>Solved with $pull:</p>
  
  <p>db.coll.update({}, {$pull: {'things': {'myval': 1}}});</p>