删除 Google Cloud Storage 文件夹下的所有文件 [英] Remove all files under a folder Google Cloud Storage

查看:24
本文介绍了删除 Google Cloud Storage 文件夹下的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Google Cloud Storage 的一个文件夹下有数百个文件.但是,用户界面并没有给我一次选择所有文件的方法.

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 ?

推荐答案

最简单的方法是使用命令行实用程序 gsutil.此命令将全部删除:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆