Google Cloud CLI (gcloud) · Compute Engine
Delete a VM
Delete a VM instance permanently.
gcloud compute instances delete my-vm --zone us-central1-a
Caution: Deleting is permanent, and boot disks are deleted by default.
Official Google Cloud CLI (gcloud) documentation
More compute engine commands
- List VM instances
- Create a VM
- Connect to a VM with SSH
- Stop a VM
- Copy a file to a VM
- Allow traffic to a port
All compute engine commands · Google Cloud CLI (gcloud) cheatsheet