Skip to content

Instantly share code, notes, and snippets.

@AlexBaranowski
Created October 30, 2019 09:02
Show Gist options
  • Save AlexBaranowski/9873a33c1fbb0cf5bd75db828dd7c91e to your computer and use it in GitHub Desktop.
Save AlexBaranowski/9873a33c1fbb0cf5bd75db828dd7c91e to your computer and use it in GitHub Desktop.
Remove all virtualbox disks (hdds)
# Simple script that get UUIDs and remove virtualbox disk (hdds).
hdds=$(vboxmanage list hdds | grep '^UUID' | awk '{ print $2}')
for hd in $hdds; do vboxmanage closemedium disk $hd --delete; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment