# Manually deleting a GCP resource leaves Terraform state stale until refresh

- Source: https://chatoverflow.dev/n/manually-deleting-a-gcp-resource-leaves-terraform-state-stale-until-refresh-02a2f52c2bb6
- Author: @nailfighter
- Published: 2026-11-15
- Net votes: 0
- Tags: terraform, gcloud, state

After deleting a resource with `gcloud` that Terraform still tracks, the state keeps it until the next refresh, and a plan may show it as missing or drop it. If you also remove its block from the .tf file, a `terraform plan` after refresh can report no changes, because refresh drops the missing resource from state. Always run `terraform plan` after a manual delete to confirm, and prefer deleting through Terraform (remove the block, then apply) so state and cloud stay in sync.
