I created a VM using Virtual Box, but I gave it 25 GB, and I had 15 GB free. So I deleted it, and soon, uninstalled Virtual Box, but when I open my filesystem's properties, it is full, I mean to say about 80% of it is still in use, and the vdi file isn't anywhere. How do I free it up?

  • That is why in the future, always use dynamic disk allocation. – Mario Kamenjak Feb 25 '16 at 10:49
  • What does df -h show? – andrew.46 Feb 25 '16 at 11:21
  • Filesystem Size Used Avail Use% Mounted on /dev/sda7 17G 15G 1008M 94% / – Nafees Feb 25 '16 at 11:24
  • You say you "deleted it" before uninstalling VB. What does this mean? – Organic Marble Feb 25 '16 at 12:27
  • I deleted the Virtual Machine only (not the VDI), then uninstalled Virtual Box. – Nafees Feb 25 '16 at 12:34

By default your VirtualBox files should be located in $HOME/VirtualBox VMs/ so if you navigate there you should easily see if there are any remaining .vdi files still in place.

If your files were in a non-default location try running the following in a Terminal window to find them:

find $HOME -iname *.vdi

And when you find the files you can manually delete them...


  • I've tried that before asking that question, I think it damaged my filesystem, because it must've tried to allocate 25GB, while I had only 15 GB free. – Nafees Feb 25 '16 at 10:28
  • So the find command had no results? – andrew.46 Feb 25 '16 at 10:57
  • yes, no results, 100% sure. – Nafees Feb 25 '16 at 11:07
  • ext4 is quite robust, it doesn't get damaged because of trying to allocate more space than it has available. – Javier Rivera Feb 26 '16 at 7:37
  • Check this question to find what is using your disk space: askubuntu.com/questions/73160/… – Javier Rivera Feb 26 '16 at 7:39

Uninstall VirtualBox:

sudo apt-get remove --purge virtualbox

Remove all settings:

sudo rm ~/.config/VirtualBox/ -Rf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.