Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is a super hacky script for deleting objects one by one on a restricted s3 bucket
import boto3
client = boto3.client('s3')
def delete_object(key_name):
return client.delete_object(Bucket='s3_bucket', Key=key_name )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment