Here is 2018 (almost 2019) version:
s3 = boto3.resource('s3')
bucket = s3.Bucket('mybucket')
bucket.objects.filter(Prefix="myprefix/").delete()
More Related Contents:
- How to write a file or data to an S3 object using boto3
- How to upload a file to directory in S3 bucket using boto
- Listing contents of a bucket with boto3
- Read a file line by line from S3 using boto?
- Can I use boto3 anonymously?
- Getting S3 objects’ last modified datetimes with boto
- Open S3 object as a string with Boto3
- Boto3 to download all files from a S3 Bucket
- How to handle errors with boto3?
- How can I use boto to stream a file out of Amazon S3 to Rackspace Cloudfiles?
- Load S3 Data into AWS SageMaker Notebook
- How to save S3 object to a file using boto3
- Read file content from S3 bucket with boto3
- Getting started with secure AWS CloudFront streaming with Python
- Retrieving subfolders names in S3 bucket from boto3
- AWS Content Type Settings in S3 Using Boto3
- Move files between two AWS S3 buckets using boto3
- How to specify credentials when connecting to boto3 S3?
- Can you upload to S3 using a stream rather than a local file?
- how to copy s3 object from one bucket to another using python boto3
- Reading an JSON file from S3 using Python boto3
- Python: How to read and load an excel file from AWS S3?
- Download a folder from S3 using Boto3
- Recommended way to manage credentials with multiple AWS accounts?
- Complete scan of dynamoDb with boto3
- How to choose an AWS profile when using boto3 to connect to CloudFront
- unable to call firefox from selenium in python on AWS machine
- How to upload File in FastAPI, then to Amazon S3 and finally process it?
- Pandas in AWS lambda gives numpy error
- How to bootstrap installation of Python modules on Amazon EMR?