Jimmy Kane
Jimmy Kane

Reputation: 16845

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

Upvotes: 3

Views: 1488

Answers (1)

Dan McGrath
Dan McGrath

Reputation: 42038

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'.

Upvotes: 3

Related Questions