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 /
Created Sep 9, 2019 — forked from xedef/
Remove all .DS_Store files (or any unwanted indexing file) from a S3 bucket, recursively

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


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:// --dryrun --recursive --exclude "*" --include "*.DS_Store"

You can’t perform that action at this time.