简体   繁体   English

删除 GCP 存储桶时出现问题

[英]Problems deleting GCP storage bucket

I have two buckets that I can't delete on GCP, tried through the UI.我有两个无法在 GCP 上删除的存储桶,通过 UI 进行了尝试。 I can't find any support info from GCP and can't delete them.我无法从 GCP 找到任何支持信息,也无法删除它们。 They are relatively large and I want to avoid the cost as well.它们相对较大,我也想避免成本。 Do I need to delete the project?我需要删除项目吗?

Thanks for any help!谢谢你的帮助!

As previously posted here , this process may actually take a while, so perhaps just wait a little bit.正如之前在这里发布的那样,这个过程实际上可能需要一段时间,所以也许稍等一下。

But, if it still doesn't work than perhaps you can follow what was suggested.但是,如果它仍然不起作用,那么也许您可以按照建议进行操作。

As a workaround to the UI being unclear, you can use gsutil to remove all files in a bucket, followed by the bucket itself, using gsutil rm -r gs://bucket .作为 UI 不清楚的解决方法,您可以使用gsutil删除存储桶中的所有文件,然后使用gsutil rm -r gs://bucket删除存储桶本身。

Or perhaps gsutil rm -m gs://bucket for a parallel deletion.或者也许gsutil rm -m gs://bucket用于并行删除。

Try to delete GCP bucket using UI (Check you have access to delete GCP bucket )尝试使用 UI 删除 GCP 存储桶(检查您是否有权删除 GCP 存储桶)

Otherwise, you can delete the GCP bucket using gsutil否则,您可以使用 gsutil 删除 GCP 存储桶

// Set Project name // 设置项目名称

gcloud config set project <Project_Name>

// Delete Bucket // 删除桶

gsutil rm -m gs://<Bucket-Name>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM