# How to Completely Remove VirtualBox from macOS

sudo kextcache -invalidate /


Note: the kextcache command must be run as root.

You should see something like KernelCache ID: <Some ID>.

But just to make sure:

ls /Library/StagedExtensions/


You shouldn’t see VirtualBox any more.

Hey! Thanks for reading :P I just want to let you know that if you enjoyed this, you might also like this post on Easiest Way to Set Up a Shadowsocks Server.