Articles → MONGODB → Deletemany Function In Mongodb
Deletemany Function In Mongodb
Purpose
Example
Click to Enlarge
db.Articles.deleteMany({subject:{$ne:”CSS”}})
Click to Enlarge
Output
Click to Enlarge
Deleting All Documents From The Collections
db.[collection_name].deleteMany({})