delete all data in a mongo db collection code example
Example 1: mongo remove all dbs
mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
Example 2: mongodb delete all documents
db.collection.delete_many( { } );