code: def delete_collection(db_name, collection_name, host='localhost', port=27017):
      
      client = MongoClient("mongodb://%s:%d" % (host, port))
      client[db_name].drop_collection(collection_name)
docs: Almost exclusively for testing.