Python MongoDB Drop Collection
You can delete a table, or collection as it is called in MongoDB, by using
Delete the "customers" collection:
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
mycol = mydb["customers"]
drop() method returns true if the collection was dropped successfully,
and false if the collection does not exist.