Deleting

suggest change

Deleting documents from a collection in mongoose is done in the following manner.

Auto.remove({_id:123}, function(err, result){
    if (err) return console.error(err);
    console.log(result); // this will specify the mongo default delete result.
});

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents