Tell us what’s happening:
I have everything correct but code is not running well.
This is my code:
const removeManyPeople = (done) => {
const nameToRemove = “Shimite”;
Person.remove({name: nameToRemove}, (err, response) => {
if(err) return (err);
done(null, response);
})
};
###Your project link(s)
solution: http://localhost:3000
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Challenge Information:
MongoDB and Mongoose - Delete Many Documents with model.remove()