Delete resources using Terraform
To delete the resources created with Terraform:
-
Go to the the directory with the configuration files.
-
Run the command:
terraform destroy
Alert
Terraform deletes all the resources that you created in the current configuration, such as clusters, networks, subnets, and VMs.
After the command is executed, the terminal will display a list of resources to be deleted.
-
Type the word
yes
, then press Enter.
You can use the management console