title: Mongoose : Nodejs Unable to delete document with document id
body: <p>I am unable to delete Mongoose Collection document using the below code</p>
  <pre><code>                    Products.findByIdAndRemove(query.productId,function(err,result){
                          if(err){
                             console.log('Error ',err.message);
                             res.status(400).json({success:false,message:err.message});
                          }
                          console.log('the document is deleted',JSON.stringify(result));
                          return res.status(200).json({success:true});    
                  
                      });
  </code></pre>
  <p>There are no errors in the Error console.log and the document is still present in the Collection, please assist.</p>