Fast way of deleting non-empty Google bucket?

前端 未结 7 1638
一整个雨季
一整个雨季 2021-02-07 02:05

Is this my only option or is there a faster way?

# Delete contents in bucket (takes a long time on large bucket)
gsutil -m rm -r gs://my-bucket/*

# Remove bucke         


        
相关标签:
7条回答
  • 2021-02-07 02:39

    Another option is to enable Lifecycle Management on the bucket. You could specify an Age of 0 days and then wait a couple days. All of your objects should be deleted.

    0 讨论(0)
提交回复
热议问题