Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shashyajoshi/1d483fcf6c63947ea89edd972be1f102 to your computer and use it in GitHub Desktop.
Save shashyajoshi/1d483fcf6c63947ea89edd972be1f102 to your computer and use it in GitHub Desktop.
$ python code-samples/gcloud-python/delete_unattached_unused_disks_gcloud.py
Disk kube-master is attached to instance kube-master
Disk orphan-disk-2 is not attached to any instance and is not labeled for delete protection
Executing command "gcloud compute disks delete orphan-disk-2 --zone europe-west1-b --project sj-test-070218"
Disk orphan-disk-3 is not attached to any instance and is labeled for delete protection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment