Methods
deleteMany()
The deleteMany() method is used to interact with collections in MongoDB.
deleteMany()
The deleteMany() method is used to interact with collections in MongoDB.
Syntax
db.collection.deleteMany(...)
Example
db.users.deleteMany(...)