Commit 6f165dd2 authored by Christian Salzmann-Jaeckel's avatar Christian Salzmann-Jaeckel
Browse files

boto3: delete object

parent 60afe103
......@@ -30,3 +30,13 @@ bucket.upload_file(Filename=radosgw_file_name,
bucket_acl = s3_resource.BucketAcl(radosgw_bucket_name)
response = bucket_acl.put(ACL='public-read')
# delete object
s3_client = boto3.client('s3',
endpoint_url=radosgw_endpoint_url,
aws_access_key_id=radosgw_access_key,
aws_secret_access_key=radosgw_secret_key
)
s3_client.delete_object(Bucket=radosgw_bucket_name,
Key=radosgw_key_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment