This operator deletes an S3 bucket

View on GitHub

Last Updated: May. 7, 2021

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.


bucket_namestrThis is bucket name you want to delete
force_deleteboolForcibly delete all objects in the bucket before deleting the bucket
aws_conn_idOptional[str]The Airflow connection used for AWS credentials. If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).


This operator deletes an S3 bucket

See also

For more information on how to use this operator, take a look at the guide: Create and Delete Amazon S3 Buckets

Was this page helpful?