Is it possible to delete multiple subfolders in S3 using the AWS CLI? There's include and exclude
command specified in the documentation but I think it's for the S3 Items and not for folders?
Tried this command but its not working aws s3 rm s3://bucketname/*/*/foldertodelete --recursive
Sample folder structure:
bucketname/folder/subfolder/itemfolder
bucketname/folder/subfolder/foldertodelete
bucketname/anotherfolder/subfolder/itemfolder
bucketname/anotherfolder/subfolder/foldertodelete
bucketname/andanotherfolder/andsubfolder/itemfolder
bucketname/andanotherfolder/andsubfolder/foldertodelete
Did I missed something? Any help would be appreciated. Thanks