Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Storage uses 490MB but I have no buckets?

Firebase Storage is using 490 MB, but no bucket has been initialized. I am not able to track where this storage com from, but it is quite strange to check that Firebase is charging 0.10 USD for an empty Storage.

Where can I delete this storage and why firebase is charging for having no buckets?

enter image description here

Currently I am using Firebase Authentication, Firestore, Realtime Database, Hosting and Functions.

enter image description here

enter image description here

enter image description here

like image 481
dllmkdir Avatar asked Sep 15 '20 00:09

dllmkdir


People also ask

How do I remove items from Storage in Firebase?

To delete a file, first create a reference to that file. Then call the delete() method on that reference, which returns a Promise that resolves, or an error if the Promise rejects.

Where is Storage bucket Firebase?

From the navigation pane of the Firebase console, select Storage, then click Get started. Review the messaging about securing your Cloud Storage data using security rules. During development, consider setting up your rules for public access. Select a location for your default Cloud Storage bucket.

Is Firebase Storage same as Google Cloud Storage?

The new Firebase Storage is powered by Google Cloud Storage, giving it massive scalability and allowing stored files to be easily accessed by other projects running on Google Cloud Platform. Firebase now uses the same underlying account system as GCP, which means you can use any GCP product with your Firebase app.

Where is Google Firebase data stored?

Cloud Storage for Firebase stores your files in a Google Cloud Storage bucket, making them accessible through both Firebase and Google Cloud. This allows you the flexibility to upload and download files from mobile clients via the Firebase SDKs for Cloud Storage.


2 Answers

Every time you deploy to Cloud Functions, it takes some space in a new storage bucket. This is covered in the documentation FAQ about Cloud Functions billing for node 10.

You can delete those files over time if you want.

like image 78
Doug Stevenson Avatar answered Nov 11 '22 11:11

Doug Stevenson


My recommendation is to use object lifecycles in the artifacts storage bucket! that way the files deletion is automated.

Follow this documentation: https://cloud.google.com/storage/docs/lifecycle

(Firebase should be the one responsible for creating this rule!)

like image 4
Andrés Sanabria Avatar answered Nov 11 '22 11:11

Andrés Sanabria