title: MongoDB deleting Array contant
body: <p>I'm trying to delete array items with my code, nothing works till now. </p>
  
  <p><a href="https://i.stack.imgur.com/VROwi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VROwi.png" alt="enter image description here"></a></p>
  
  <p>PS : the content that needs to be deleted is in <code>data</code> array </p>
  
  <p>I try to use code below to do that and it is still not working.       </p>
  
  <pre><code>newdevice.update({vic_num:vcnm},{ $pull: { "data": [] } },(err,data)=&gt;{
              if(err) throw err;
              console.log(data);
          })
  </code></pre>