If I have 15 VMS deployed on the cloud, and I want to create one VM using terraform to test it and I want to delete the one VM. Would my state file include all 16 VMs or just one VM?
What's the best course of action to remove the VM?
Assuming that the 15 VMs are already running and not managed by your TF code, then your TF state file would only have one VM (the 16th). Then to delete it, there are two options:
terraform destroy
terraform apply