diff --git a/firestore/cloud-client/snippets.py b/firestore/cloud-client/snippets.py index 7673263aa86..05997edb7ba 100644 --- a/firestore/cloud-client/snippets.py +++ b/firestore/cloud-client/snippets.py @@ -802,7 +802,7 @@ def delete_full_collection(): # [START delete_full_collection] def delete_collection(coll_ref, batch_size): - docs = coll_ref.limit(10).stream() + docs = coll_ref.limit(batch_size).get() deleted = 0 for doc in docs: