Created
October 30, 2019 09:02
-
-
Save AlexBaranowski/9873a33c1fbb0cf5bd75db828dd7c91e to your computer and use it in GitHub Desktop.
Remove all virtualbox disks (hdds)
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
# 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