S3DeleteBucketOperator
AmazonThis operator deletes an S3 bucket
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.
Parameters
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).
Documentation
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