//here is my code at fcc myApp.js
i’m pretty sure is it right but it’s not
ERR: Deleting many items at once should succeed
const removeManyPeople = (done) => {
const nameToRemove = "Mary";
const query = { name: nameToRemove };
Model.remove(query, (error, data) => {
if(error) {
done(error);
} else {
done(null, data)
}
});
};
Your project link(s)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: MongoDB and Mongoose - Delete Many Documents with model.remove()
Link to the challenge: