Skip to content

Instantly share code, notes, and snippets.

@dave-tucker
Created January 21, 2014 12:25
Show Gist options
  • Save dave-tucker/8539095 to your computer and use it in GitHub Desktop.
Save dave-tucker/8539095 to your computer and use it in GitHub Desktop.
Deletes all VMs from Nova
#!/bin/bash
. ./openrc admin admin
for OUTPUT in $(nova list | grep -v "Name" | awk '{ print $2}');
do
echo "Deleting VM $OUTPUT"
nova delete $OUTPUT
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment