I'm developing a backend for REST API. It uses MongoDB as a database. I am using mongodb v: ^5.3.3.
I would like to remove a collection of items, upon API request, but received the above error message:
DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead
How do I completely drop the collection?