- Destroy command will be used to destroy the created configuration.
- You can use target flag to specify which resource you want to delete.
$ terraform destroy – target < flagname>
- You can also pass the -out flag to pass the output to a file.
$ terraform destroy –out <filename.tfplan>