Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# author: Gary A. Stafford
# site:
# license: MIT License
# purpose: Delete GCP VM instance, IP address, and firewall rule
# usage: sh ./
# Constants - CHANGE ME!
readonly PROJECT='ansible-gce-demo'
readonly ZONE='us-east1-b'
time yes | gcloud compute instances delete web-1 \
--project $PROJECT --zone $ZONE
time yes | gcloud compute firewall-rules delete default-allow-http \
--project $PROJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment