Skip to content

Typo in firestore delete-data sample #2170

@javierdvalle

Description

@javierdvalle

In which file did you encounter the issue?

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions