From d555c867dcc4d2b0675616a3f102d51eaecbcb69 Mon Sep 17 00:00:00 2001 From: BenWhitehead Date: Wed, 12 Jun 2019 17:18:49 -0400 Subject: [PATCH] Update delete_full_collection sample to use batch_size as the limit --- firestore/cloud-client/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: