If you previously installed VirtualBox on your Mac, but you no longer need the program, you can remove it from your computer. Elements of VirtualBox are stored in the MacOS file system, so this program is not removed like the others.
Fortunately, the process is still pretty simple and takes a little time. In addition, we will talk about how to manually delete VirtualBox, which is a bit more complicated.
If you do not know, VirtualBox is an excellent program for advanced users, which serves to run third-party operating systems over MacOS. This may be Windows 10 or Ubuntu Linux. The program is available for several platforms, so you can run MacOS over Windows, etc.
Most Linux users can easily remove VirtualBox with a simple command:
sudo apt-get purge virtualbox *
However, on a Mac, VirtualBox is usually installed via an installer. Fortunately, there is a script to remove.
How to remove VirtualBox from your Mac
- Download the latest version of the VirtualBox installer if you don’t have one.
- Mount the VirtualBox disk image and open the dmg through the Finder.
- Double-click the “VirtualBox_Uninstall.tool” text document to open it in the Terminal window.
- Confirm the complete removal of VirtualBox by typing “yes”. You can cancel the action by typing “no” or by closing the Terminal window.
When all elements of VirtualBox are deleted, you can close the Terminal window.
How to remove VirtualBox manually
If you prefer to do everything manually, you can find the exact location of all the directories, components, files and VirtualBox extensions and delete them individually
Here is a list of VirtualBox file locations:
~ / Library / LaunchAgents / org.virtualbox.vboxwebsrv.plist / usr / local / bin / VirtualBox / usr / local / bin / VBoxManage / usr / local / bin / VBoxVRDP / usr / local / bin / VBoxHeadless / usr / local / bin / vboxwebsrv / usr / local / bin / VBoxBugReport / usr / local / bin / VBoxBalloonCtrl / usr / local / bin / VBoxAutostart / usr / local / bin / VBoxDTrace / usr / local / bin / vbox-img /Library/LaunchDaemons/org.virtualbox.startup.plist /Library/Python/2.7/site-packages/vboxapi/VirtualBox_constants.py /Library/Python/2.7/site-packages/vboxapi/VirtualBox_constants.pyc /Library/Python/2.7/site-packages/vboxapi/__init__.py /Library/Python/2.7/site-packages/vboxapi/__init__.py /Library/Python/2.7/site-packages/vboxapi-1.0-py2.7.egg-info / Library / Application Support / VirtualBox / LaunchDaemons / / Library / Application Support / VirtualBox / VBoxDrv.kext / / Library / Application Support / VirtualBox / VBoxUSB.kext / / Library / Application Support / VirtualBox / VBoxNetFlt.kext / / Library / Application Support / VirtualBox / VBoxNetAdp.kext / /Applications/VirtualBox.app/ /Library/Python/2.7/site-packages/vboxapi/ org.virtualbox.kext.VBoxUSB org.virtualbox.kext.VBoxNetFlt org.virtualbox.kext.VBoxNetAdp org.virtualbox.kext.VBoxDrv org.virtualbox.pkg.vboxkexts org.virtualbox.pkg.virtualbox org.virtualbox.pkg.virtualboxcli
The easiest way to find and delete files is through Terminal, but you can also do this through the Finder.