gcloud compute instances delete web-server --zone us-central1-a

Category: Google Cloud & Workspace

gcloud compute instances delete web-server --zone us-central1-a

Delete a VM instance permanently

Removes the instance and, by default, its attached boot disk, destroying all data on it with no recovery. Add --keep-disks=boot to preserve the disk or --delete-disks=all to also wipe extra data disks. Snapshot important disks first with gcloud compute disks snapshot.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.