Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Typo in firestore delete-data sample #2170

Copy link
Copy link
Closed
@javierdvalle

Description

@javierdvalle
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.