Skip to content

Instantly share code, notes, and snippets.

@wilvk
Created April 11, 2017 23:21
Show Gist options
  • Save wilvk/2ff227794b97590dd02b7c019e0bd565 to your computer and use it in GitHub Desktop.
Save wilvk/2ff227794b97590dd02b7c019e0bd565 to your computer and use it in GitHub Desktop.
Vagrant Global Destroy
#!/bin/bash
vagrant global-status | tail -n +3 | cut -d' ' -f1 | sed '/^$/q'|xargs -I %s vagrant destroy %s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment