title: nodejs mongodb not deleteing based on id
body: <p>Can you please help me with this code. This code is not deleting the value from MongoDB, while I am running this url : <a href="http://localhost:3000/delete/57c6713455a6b92e105c5250" rel="nofollow">http://localhost:3000/delete/57c6713455a6b92e105c5250</a>.</p>
  
  <p>I am getting this response: <code>{"lastErrorObject":{"n":0},"value":null,"ok":1}</code>, but not deleting .</p>
  
  <pre><code>app.get('/delete/:id', (req, res) =&gt; {
     var uid = req.params.id;
     db.collection('quotes').findOneAndDelete({'_id': uid}, (err, result) =&gt; {
        if (err) return res.send(500, err);
        res.send(result);
     }); 
  });
  </code></pre>