title: In MongoDB, how do I safely remove documents which contain an empty array?
body: <p>If the property in question is "urls", my intuition tells me the following would work: </p>
  
  <p><code>db.collection_123.remove({ "urls": [] });</code></p>
  
  <p>I would just rather not test it out, if it had some unexpected behavior, like deleting every document whose <code>urls</code> value was an array.</p>