April 2018
Intermediate to advanced
280 pages
8h 37m
English
Objects or files inside a bucket can be deleted using the delete_objects() function of the Bucket class:
import boto3s3 = boto3.resource('s3')bucket = s3.Bucket('packt-pub')bucket.delete_objects( Delete = {'Objects': [ { 'Key': 'test.txt', }, ], 'Quiet': True })