Rank 2: Process
I'm calling this from a cloud function, deletes a few documents. But not all of them. Why ?
def delete_all_documents(database, collection_id):
docsRef = database.list_documents(MASTER_DATABASE_ID,collection_id)
for doc in docsRef["documents"]:
database.delete_document(MASTER_DATABASE_ID, collection_id, doc["$id"])