mongodb table delete code example Example 1: mongodb remove all from collection db.collection.remove({}) Example 2: delete collection mongodb db.collection.drop()