Ricordanza
11/1/2019 - 1:26 AM

S3のバージョンファイルを全て削除する Python boto3

import boto3

BUCKET = 'your-bucket-here'

s3 = boto3.resource('s3')
bucket = s3.Bucket(BUCKET)
bucket.object_versions.delete()