Articles → MONGODB → Deletemany Function In Mongodb
Deletemany Function In Mongodb
Purpose
Example
db.Articles.deleteMany({subject:{$ne:”CSS”}})
Output
Deleting All Documents From The Collections
db.[collection_name].deleteMany({})
Posted By - | Karan Gupta |
|
Posted On - | Tuesday, February 7, 2023 |
|
Updated On - | Monday, April 8, 2024 |