-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Closed
Description
In which file did you encounter the issue?
python-docs-samples/firestore/cloud-client/snippets.py
Lines 637 to 647 in 19f7f65
| def delete_collection(coll_ref, batch_size): | |
| docs = coll_ref.limit(10).get() | |
| deleted = 0 | |
| for doc in docs: | |
| print(u'Deleting doc {} => {}'.format(doc.id, doc.to_dict())) | |
| doc.reference.delete() | |
| deleted = deleted + 1 | |
| if deleted >= batch_size: | |
| return delete_collection(coll_ref, batch_size) |
Referenced in this tutorial: https://firebase.google.com/docs/firestore/manage-data/delete-data
Did you change the file? If so, how?
No
Describe the issue
There's a typo in this line:
| docs = coll_ref.limit(10).get() |
It should be: docs = coll_ref.limit(batch_size).get()
It appears to be only in the python version, the java, go, php and node versions are ok.
Metadata
Metadata
Assignees
Labels
No labels