Delete Many Documents with model.remove() - model.remove() deprecated

Tell us what’s happening:
model.remove() is deprecated - how to go to the next step?

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/97.0.4692.99 Safari/537.36

Challenge: Delete Many Documents with model.remove()

Link to the challenge:

go to package.json and downgrade mongoose to ~5.4.0; restart the server and try again. It will work :wink:


It worked. Thank you!

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