Skip to content

Instantly share code, notes, and snippets.

@abdennour
Created March 8, 2018 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdennour/525f1489d57dfc45334bd50bbf6d12f6 to your computer and use it in GitHub Desktop.
Save abdennour/525f1489d57dfc45334bd50bbf6d12f6 to your computer and use it in GitHub Desktop.
Destroy all running Vagrant boxes after Confirmation
#!/bin/bash
for i in `vagrant global-status | grep virtualbox | awk '{ print $1 }'` ; do vagrant destroy $i ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment