Delete Many Documents with model.remove() Issue

Hello Guys,

I am working on Delete Many Documents with model.remove() assignment. I am using the following code.

const removeManyPeople = (done) => {
const nameToRemove = “Mary”;
Person.remove({name: nameToRemove}, (err, response) => {
if(err) return console.log(err);
done(null, response);
})
};

The test does not pass and showing the following message.

// running tests
Deleting many items at once should succeed
// tests completed

Any help would be appreciated.

Thank you

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