How do I remove documents using Node.js Mongoose?
Asked 07 September, 2021
Viewed 2.1K times
  • 56
Votes
FBFriendModel.find({
    id: 333
}, function (err, docs) {
    docs.remove(); //Remove all the documents that match!
});

The above doesn't seem to work. The records are still there.

Can someone fix?

23 Answer