Error
terraform workspace delete qa
╷
│ Error: Workspace is not empty
│
│ Workspace "qa" is currently tracking the following resource instances:
│ - aws_instance.example-number[0]
│
│ Deleting this workspace would cause Terraform to lose track of any associated remote objects, which would then
│ require you to delete them manually outside of Terraform. You should destroy these objects with Terraform before
│ deleting the workspace.
│
│ If you want to delete this workspace anyway, and have Terraform forget about these managed objects, use the -force
│ option to disable this safety check.
Solution
terraform workspace select default
terraform workspace delete qa [ ERROR ]
terraform workspace select qa
terraform destroy --auto-approve
terraform workspace select default
terraform workspace delete qa
Latest posts by rajeshkumar (see all)
- The Changing Shape of Technology: From Tools to Thinking Partners - March 9, 2026
- Omnisend vs. Klaviyo: Which Is Best for Agencies - February 19, 2026
- The Cloud Resilience Standard: Synchronizing AWS Migration with Continuous Vulnerability Management - January 21, 2026