How to delete files recursively from an S3 bucket

后端 未结 12 616
不知归路
不知归路 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:31

    With s3cmd package installed on a Linux machine, you can do this

    s3cmd rm s3://foo/bar --recursive

提交回复
热议问题