如何从GC存储中删除过时的Firebase Cloud功能容器? [英] How to delete outdated Firebase Cloud function containers from GC Storage?
问题描述
最近,Firebase开始对Cloud Functions容器存储收费: https://firebase.google.com/pricing
So recently Firebase started charging for Cloud Functions container storage: https://firebase.google.com/pricing
免费使用$ 0.026/GB
No free usage $0.026/GB
我已经多次部署了2个功能(不超过10次,记不清确切的计数了,但是,IMO,这仍然很低).现在,我已经已开出了少量账单(目前为一分钱).看来,如果我再部署这些功能数十次,我将接近一美元,因为旧的(未使用的)容器不会从存储桶中删除.
I have deployed 2 functions several times (no more than 10 times, can't remember exact count, but this is still pretty low, IMO). Now I am already billed a small amount (fractions of a cent for now). So seems that if I deploy the functions another few dozens of times, I'll get close to a dollar, because old (and unused) containers are not deleted from the storage bucket.
是否有办法安全删除过时的,未使用的容器以释放一些空间?好吧,似乎几分钱都不值得花时间,但是,免费套餐应该不是这样.
Is there a way to safely delete outdated, not used containers to free some space? Well, it may seem that a few cents are not worth the time, but still, that's not what a free tier should be like.
推荐答案
- Go to the Cloud console
- Select "Cloud Storage -> Browser" from the products in the hamburger menu.
- You will see multiple storage buckets there. Simply dig in to the buckets that start with "artifacts" or end with "cloudbuild" and delete the old files (by date) that you don't want.
这篇关于如何从GC存储中删除过时的Firebase Cloud功能容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!