21.7 Destroying entire resources created with Terraform

Perform the following steps to destroy the resources created with Terraform:

NOTE:Be cautious before proceeding with this process.

  1. Navigate to the directory where you have used terraform to create resources.

  2. Run the following command to delete the resources:

    terraform destroy --auto-approve

  3. (optional) In case there are any errors seen during the above command, please re-run the same command.