How to delete files recursively from an S3 bucket

后端 未结 12 487
不知归路
不知归路 2021-01-29 23:54

I have the following folder structure in S3. Is there a way to recursively remove all files under a certain folder (say foo/bar1 or foo or foo/bar2/1 ..)

         


        
12条回答
  •  执念已碎
    2021-01-30 00:45

    Just saw that Amazon added a "How to Empty a Bucket" option to the AWS console menu:

    http://docs.aws.amazon.com/AmazonS3/latest/UG/DeletingaBucket.html

提交回复
热议问题