gcloud compute disks delete data-disk --zone us-central1-a

Category: Google Cloud & Workspace

gcloud compute disks delete data-disk --zone us-central1-a

Delete a persistent disk

Permanently erases the disk and all data on it, which fails if the disk is still attached to a running instance unless you add --force. Take a snapshot with gcloud compute disks snapshot before deleting anything important. Deleting a disk frees its storage cost but removes all recovery options.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.