How do I uninstall MATLAB on Windows when the uninstaller fails?
859 views (last 30 days)
MathWorks Support Team on 1 Aug 2022
Edited: MathWorks Support Team on 1 Aug 2022
If the MATLAB uninstaller was unable to complete, try executing the uninstall.exe from $MATLAB\uninstall (where $MATLAB is the folder where MATLAB is installed). For example:
If you are unable to complete the uninstaller, you can manually delete the MATLAB installation folder.
Afterwards, you can remove the MATLAB entries from the Windows System Path. For help modifying the Path in Windows, see the related article:
How do I set my system path under Windows
More Answers (4)
Bruce on 30 Jul 2020
They don't add much, but there were about 50 entries in the registry that reference either matlab or mathworks. I don't think many of them are "important" enough to affect performace, but bloat is bloat.
Vladimir Sovkov on 3 Dec 2021
I have a similar but somewhat different problem. For a couple of years, I used Matlab 2019b with Windows 10. This year I decided to switch to the newer version Matlab 2021b. After installing and testing it, I decided to remove the older one using the standard Windows tools. However, it reproted that it could not do it because it could not find "uninstall.exe". Indeed, I did not find it in the installation folders of Matlab 2019b as well (meanwhile, "uninstall.exe" exists in the installation folders of Matlab 2021b...). Are there any ideas of where it could go? Is there a way to restore "uninstall.exe" and uninstall the older version in a regular way? Or, can it only be removed manually as described in those answers above? Would not it harm the new version somehow?
Bruce on 29 Jul 2020
And how to we "safely" remove all of the drek that gets added to the registry if we have to resort to the "delete the matlab folder" option of blowing away a version of matlab that can't be installed "cleanly"