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