Deleting objects from an S3 bucket using boto3

import boto3

s3 = boto3.resource('s3')
bucket = s3.Bucket('bucket_name')
response = bucket.delete_objects(
        'Objects': [
                'Key': 'myObjectKey'
13 lines of code, 224 characters

Similar AWS code snippets using python

Finally, a good search for AWS Console

Was that in us-east-1? Or us-west-2? No need to remember. Just type the name of the resource and CloudTempo will find it.