nuclearpinguin commented on a change in pull request #7307: [AIRFLOW-6676]
added GCSDeleteBucketOperator
URL: https://github.com/apache/airflow/pull/7307#discussion_r373679194
##########
File path: airflow/providers/google/cloud/operators/gcs.py
##########
@@ -625,3 +625,32 @@ def execute(self, context: Dict):
object_name=self.destination_object,
filename=destination_file.name
)
+
+
+class GCSDeleteBucketOperator(BaseOperator):
+ """
+ Deletes bucket from a Google Cloud Storage.
+
+ .. seealso::
+ For more information on how to use this operator, take a look at the
guide:
+ :ref:`howto/operator:GCSDeleteBucketOperator`
+
+ :param bucket_name: name of the bucket which will be deleted
+ :type bucket_name: str
+ """
+
+ template_fields = ('bucket_name', "gcp_conn_id")
+
+ @apply_defaults
+ def __init__(self,
+ bucket_name: str,
Review comment:
```suggestion
bucket_name: str,
force: bool = True,
```
It's good idea to add this option to operator. In my opinion it should
default to `True`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services