Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the firestore not remove the bytes stored and objects when deleting all documents and collections?

Hi I am developing with FireBase firestore.

Every document I write I use the admin panel to delete all documents and subcollections as stated in the popup when you try to delete all.

However, I don't see ever the storage going down. It only goes up after deletes etc.

Moreover, although I do not have a staging environment only a normal one I can see that the consumption mainly comes from there as seen in the screenshot below...

enter image description here

So in short, even I delete all documents + subcollections the store bytes do not decrease.

PS. Same happens even if I use my own app to do a delete for all documents and subcollections

UPDATE:

Todays usage enter image description here

Cloud storage enter image description here

like image 258
Jimmy Kane Avatar asked Dec 16 '25 18:12

Jimmy Kane


1 Answers

The confusion here (which I'll talk to the FirebaseUI team about) is the first graph is showing you the GCS bucket staging.quant.appspot.com has ~61MB of data stored in it. The last image in your question shows that the GCS bucket used for Firebase is empty. The key takeaway here is you have 2 GCS buckets, the Firebase used one is empty, the 'staging' one is not.

The staging bucket is generally used by App Engine as part of the upload process for apps, which is why it probably has data in it even though you aren't using Cloud Storage via Firebase.

I am the product manager on Cloud Firestore, so I can guarantee this is showing 'Cloud Storage' (GCS) not 'Storage used by Cloud Firestore'.

like image 71
Dan McGrath Avatar answered Dec 21 '25 03:12

Dan McGrath



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!