Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How do I remove documents using Node.js Mongoose?

Asked by Jan Ferguson Jun 21, 2021 1.2K views 1 answer
Share

About this question

 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.


How mongoose delete the document?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.