delete all data in mongodb schema code example Example: delete collection mongodb db.collection.drop()