Specifically destroy a resource in Terraform
terraform destroy -target aws_subnet.dev-subnet-2
This initiates the process of destroying resources managed by Terraform.
It specifies that only the AWS subnet resource named
dev-subnet-2 should be targeted for destruction, rather than destroying all resources defined in the Terraform configuration