Created
January 15, 2018 20:57
-
-
Save DinosaurDad/16ac73d1dc5e317638007ce82719aad4 to your computer and use it in GitHub Desktop.
AWS - S3 - Delete files with extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 rm s3://somebucket/somefolder/ --recursive --dryrun --exclude "*" --include "*.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First exclude all: --exclude ""
Then include only .json: --include ".json"