Open fabiokfouri opened 1 year ago
This might make sense to implement as a deletion_policy field that defaults to ABANDON to match the current behavior.
I don't see a way to actually trigger this deletion on the API side, which would be a prerequisite.
The Dataplex Zone resource create a dataset, but don't have any argument to destroy this dataset. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dataplex_zone
When is necessary a rebuild, the Terraform fail because the dataset already exists.
I think that would be great to implement something or a feature like delete_contents_on_destroy. This feature exisits in google_bigquery_dataset (https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_dataset)
Affected Resource(s)
b/321386263