Mongoose remove() Solution doenst work

Tell us what’s happening:

// This solution dosnt work
const removeManyPeople = (done) => {
const nameToRemove = “Mary”;
Person.remove({name: nameToRemove}, (err, res) => {
if(err) return console.log(err);
done(null, res);

Something wrong?

Thanks for your attention,

Your project link(s)

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Delete Many Documents with model.remove()

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.