diff --git a/mmv1/products/chronicle/Rule.yaml b/mmv1/products/chronicle/Rule.yaml index 1259b9a81ae6..b6107bd7b6ee 100644 --- a/mmv1/products/chronicle/Rule.yaml +++ b/mmv1/products/chronicle/Rule.yaml @@ -54,7 +54,6 @@ examples: custom_code: pre_delete: 'templates/terraform/pre_delete/chronicle_rule.go.tmpl' - test_check_destroy: 'templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl' virtual_fields: - name: 'deletion_policy' diff --git a/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl b/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl deleted file mode 100644 index 83274259d028..000000000000 --- a/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -// Delete is eventually-consistent; wait for a moment. -time.Sleep(10*time.Second) - -config := acctest.GoogleProviderConfig(t) -url, err := tpgresource.ReplaceVarsForTest(config, rs, fmt.Sprintf("%s%s", transport_tpg.BaseUrl(chronicle.Product, config), "projects/{{"{{"}}project{{"}}"}}/locations/{{"{{"}}location{{"}}"}}/instances/{{"{{"}}instance{{"}}"}}/rules/{{"{{"}}rule_id{{"}}"}}")) -if err != nil { - return err -} - -billingProject := "" - -if config.BillingProject != "" { - billingProject = config.BillingProject -} - -_, err = transport_tpg.SendRequest(transport_tpg.SendRequestOptions{ - Config: config, - Method: "GET", - Project: billingProject, - RawURL: url, - UserAgent: config.UserAgent, -}) -if err == nil { - return fmt.Errorf("ChronicleRule still exists at %s", url) -} \ No newline at end of file