How to completely uninstall MATLAB?

There is no uninstaller for MATLAB on UNIX or Linux. To remove MATLAB you simply need to delete the MATLAB installation following the instructions below:

  1. If you are running a license manager for MATLAB, shut down the license manager using the lmdown script located in MATLAB's etc directory. If this folder does not exist, you are not running the FlexNet license manager. For example:

    [[email protected] ~] /usr/local/MATLAB/R2010b/etc/lmdown
  2. You should also remove any license manager files in the /var/tmp directory. These files should begin with lm_TMW, e. g.:

    [[email protected] ~] rm /var/tmp/lm_TMW*
  3. Remove the entire root MATLAB directory using the rm -rf command, e. g.:

    [[email protected] ~] rm -rf /usr/local/MATLAB/R2010b
  4. Remove any symlinks to MATLAB binaries on the path, e. g.:

    [[email protected] ~] rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild