how to delete all records with deletemany mongodb code example
Example 1: mongodb delete all documents
db.collection.delete_many( { } );
Example 2: db.collection.deleteMany(
db.<collection>.deleteMany({"field" : "value"})
db.collection.delete_many( { } );
db.<collection>.deleteMany({"field" : "value"})