-2

I created runscope api monitoring resources by using terraform. I want to cleanup those by using terraform.

resource "runscope_test" "api" {
    name        = "api-test"
    description = "checks the api is up and running"
    bucket_id   = runscope_bucket.main.id
}
  • If you mean by clean up deleting this resource previously created by Terraform, you can execute `terraform destroy`. See documentation https://developer.hashicorp.com/terraform/cli/commands/destroy – 32cupo Aug 11 '23 at 10:15

1 Answers1

2

Use terraform destory or if you want to be more specific, use -target option:

terraform destroy -target="runscope_test.api"
Marcin
  • 215,873
  • 14
  • 235
  • 294