How do I uninstall MATLAB or other MathWorks products on a Linux machine?

1.830 views (last 30 days)
I would like to uninstall MATLAB or other MathWorks Products on or Linux machine.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Jan 2021
Edited: MathWorks Support Team on 13 Apr 2021
There is no uninstaller for MathWorks products on Linux. To remove MATLAB, you simply need to delete the MATLAB installation following the instructions below:
1. Remove the entire root directory using the 'rm -rf' command, ex:
[root@localhost ~] rm -rf /usr/local/MATLAB/R2010b
2. Remove any symlinks to binaries on the path, ex:
[root@localhost ~] rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild

Sign in to comment.

More Answers (4)

Amine MATOUK on 7 Nov 2016
Instructions 1,2, and 4 didn't excute for me,
Thanks to explain.
Walter Roberson
Walter Roberson on 7 Aug 2017
At the Konsole give the commands
which matlab
alias | grep matlab
and see what is returned. I suspect you might have an alias pointing to a different version.

Sign in to comment.

SGUNITN on 23 Feb 2018
use superuser in order to delete the files. It might be privilege issue. sudo su

peishenfei on 5 Apr 2018
Instructions 4, why does my file /usr/local/bin/mex points to /home/xxx/app/texlive/bin/x86_64-linux/mex? Thanks in advance

Tech Support
Tech Support on 13 Apr 2018
Edited: MathWorks Support Team on 19 Jan 2021
Hi Peishenfei,
If you are still experiencing this issue, please contact MathWorks support:


No tags entered yet.


Community Treasure Hunt

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

Start Hunting!

Translated by