Created
          January 21, 2014 12:25 
        
      - 
      
- 
        Save dave-tucker/8539095 to your computer and use it in GitHub Desktop. 
    Deletes all VMs from Nova
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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