github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/contrib/vagrant/rigger/destroy.sh (about) 1 function _destroy-all-vagrants { 2 VMS=$(vagrant global-status | grep deis | awk '{ print $5 }') 3 for dir in $VMS; do 4 cd ${dir} && vagrant destroy --force 5 done 6 } 7 8 rerun_log "Destroying Vagrant cluster..." 9 _destroy-all-vagrants