Stuck with remove method

Tell us what’s happening:
Describe your issue in detail here.
i am stuck with remove method when use mongoose it said that remove method is deprecated and I try use deleteMany instead but it doesn’t work please some help me

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/94.0.4606.71 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.