Supprimer un pymongo

#db.collection.deleteOne() is outdated.
#deletes the first document that matches the object.
db.collection.delete_one({})
Liz