Skip to content

Instantly share code, notes, and snippets.

Govert Verschuur verschuur

Block or report user

Report or block verschuur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@verschuur
verschuur / remove-indexing-files.md
Created Sep 9, 2019 — forked from xedef/remove-indexing-files.md
Remove all .DS_Store files (or any unwanted indexing file) from a S3 bucket, recursively
View remove-indexing-files.md

You can replace "*.DS_Store" with any other recurrent file (e.g. Desktop.ini)

Please!

Validate that you are going to delete only what you want passing the --dryrun option. I've left if by default just in case of copy/paste.

aws s3 rm s3://your.bucket.name/maybe-a-subkey --dryrun --recursive --exclude "*" --include "*.DS_Store"

You can’t perform that action at this time.