clear all the data in pymongo db code example Example: delete collection mongodb db.collection.drop()