BigQueryDeleteDatasetOperator
GoogleThis operator deletes an existing dataset from your Project in Big query. https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/delete
Access Instructions
Install the Google provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
Parameters
Documentation
This operator deletes an existing dataset from your Project in Big query. https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/delete
See also
For more information on how to use this operator, take a look at the guide: Delete dataset
Example:
delete_temp_data = BigQueryDeleteDatasetOperator(dataset_id='temp-dataset',project_id='temp-project',delete_contents=True, # Force the deletion of the dataset as well as its tables (if any).gcp_conn_id='_my_gcp_conn_',task_id='Deletetemp',dag=dag)
Example DAGs
Example DAG using PrestoToGCSOperator.
Example Airflow DAG that shows how to use SalesforceToGcsOperator.
Example Airflow DAG that shows how to use FacebookAdsReportToGcsOperator.
A simple DAG demonstrating an extract-and-load pipeline with data quality checks in BigQuery.
Example DAG showcasing loading and data quality checking with BigQuery and Great Expectations.