Deleting Buckets in Google Cloud Storage

孤者浪人 提交于 2021-02-10 17:26:03

问题


I have followed the directions provided by Google to delete some old buckets in the in my account ... it is very straight forward process listed however after confirming the deletion to occur the "Preparing to Delete" pops up on the bottom left, but the system never deletes the files and bucket ?

I have posted this several times but no one have suggested a solution or a reason why the process does not work.


回答1:


If you have a lot of files in your bucket, it might simply take a long time to perform the operation.

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.




回答2:


In my experience, when the bucket has lots of objects, using the web interface or gsutil alone is not the best way.

What I did, was that I added a life cycle rule, to have Google delete all the object in the bucket.

Then, coming back after a day, the bucket can easily be deleted.



来源:https://stackoverflow.com/questions/48253399/deleting-buckets-in-google-cloud-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!