3
echo "Delete all of the juju named security groups?"
7
read -r -p "Are you sure? [y/N] " response
8
response=${response,,} # tolower
9
if [[ $response =~ ^(yes|y)$ ]]
11
for id in $(openstack security group list -c ID -c Name -f value | grep "juju" | awk '{print $1}')
13
echo "Deleting group: $id"
14
openstack security group delete $id