删除Google Cloud Storage文件夹下的所有文件 [英] Remove all files under a folder Google Cloud Storage
本文介绍了删除Google Cloud Storage文件夹下的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Google Cloud Storage的文件夹下有数百个文件. 但是,UI并没有提供我一次选择所有文件的方法.
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 them at once ?
推荐答案
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
这篇关于删除Google Cloud Storage文件夹下的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文