how to delete all elements in mongodb collection code example
Example 1: mongodb delete all documents
db.collection.delete_many( { } );
Example 2: delete all of something in mongo shell
Removes ALL: db..remove({})
Example: db.users.remove({id: 73465872012183})