title: Can I use Time-to-Live of mongoDB to delete an object in an array?
body: <p>All I can see on the internet was it will remove the whole document but I just want to delete the object in an array that is in a document.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>{
  _id: "SOME ID OF A PARTICULAR DOCUMENT",
  permission: [{
  "I WANT TO DELETE THIS BASED ON TIME"
  }],
  "OTHER KEY-VALUE PAIRS"
  }
  </code></pre>