This operator deletes an S3 bucket

View on GitHub

Last Updated: Jan. 24, 2023

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_nameThis is bucket name you want to delete
force_deleteForcibly delete all objects in the bucket before deleting the bucket
aws_conn_idThe 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: Delete an Amazon S3 bucket

Was this page helpful?