Permanently deleting objects from a s3 bucket that has versioning enabled – not so straight forward
Do NOT use this procedure if you have files in your versioning enabled bucket that you want to keep. The following procedure will permanently delete all files and versions in a bucket. It was written to be run from Linux/Bash and it assume python3 is installed, and the boto3 package is installed remove-all-versions.bash #! /bin/bash …