Remove all files under a folder Google Cloud Storage

前端 未结 3 1638
粉色の甜心
粉色の甜心 2021-01-04 09:41

I have hundred files under a folder in Google Cloud Storage. But, the UI doesn\'t give me a way to select all files at once.

How can I select all files and delete

3条回答
  •  心在旅途
    2021-01-04 09:48

    The easiest way would be to use the command-line utility, gsutil. This command will delete them all:

    gsutil -m rm gs://BUCKET_NAME/**
    

    If you want to delete the bucket as well, you could do this instead:

    gsutil -m rm -R gs://BUCKET_NAME
    

提交回复
热议问题