Clear Filters
Clear Filters

Can't uninstall matlab 2020a/2020b

15 views (last 30 days)
Walter Roberson
Walter Roberson on 20 Feb 2021
The easiest known way to deal with that message is to reinstall MATLAB and the Aerospace Blockset. That should fix the files so that you can remove MATLAB.
Joseph Shitote
Joseph Shitote on 11 Sep 2021
This did not work for me. The following error comes along.

Sign in to comment.

Accepted Answer

Deepak Meena
Deepak Meena on 23 Feb 2021
Edited: Deepak Meena on 23 Feb 2021
Hi Zhimei,
It's not clear to me whether you want to install the matlab completly or want to uninstall partilcular toolbox , so I am going to provide solutions for both scenarios:
Trying to uninstall the MATLAB completly
NOTE: If you have saved any personal files within your MATLAB directory, be sure to place those files elsewhere before uninstalling MATLAB.
1. Stop the network license manager as described below. If you are uninstalling a standalone installation, skip to step #2.
a. Open lmtools.exe, which is located in $MATLAB\etc\win{32|64} ($MATLAB\flexlm for releases prior to 2010b).
b. Click on the 'Start/Stop/Reread' tab.
c. Click the 'Stop Server' Button
2. Run uninstall.exe from the $MATLAB\uninstall directory to uninstall MATLAB.
3. The uninstaller may leave files behind. To make sure everything has been deleted, go to the directory where MATLAB and the network license manager were installed and delete the entire folder.
4. If MATLAB cannot be uninstalled using the uninstaller or by removing MATLAB with the Windows Add/Remove Programs tool, you can simply delete the MATLAB directory and all of its contents.
Unintalling a Particular toolbox :
Refer to this link Uninstalling a toolbox
  1 Comment
Walter Roberson
Walter Roberson on 23 Feb 2021
There are two reasons to not just start by deleting the directory and skipping the Uninstaller on Windows
  1. Uninstaller cleans up the registry
  2. Uninstaller cleans up the directory that MATLAB stores a copy of the installation file into in order to make toolbox installation and removal faster
However the Uninstaller does not remove the directory that Add-ons were downloaded into (or at least not if any other versions are still installed)
I do not know the locations of these two additional directories in Windows. For Mac they would be under ~/Downloads/Mathworks/R20xxx and ~/Library somewhere

Sign in to comment.

More Answers (0)


Find more on Introduction to Installation and Licensing in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!