Uninstall MATLAB
To uninstall MATLAB®, follow the instructions for the operating system of your computer.
Linux and macOS
On Linux® and macOS systems, delete the folder where MATLAB is installed. The default location of this folder is as follows, where
R20XXy is the MATLAB release being uninstalled:
Linux —
/usr/local/MATLAB/R20XXymacOS —
/Applications/MATLAB_R20XXy.app
Windows (Interactive)
On Windows® systems, from the list of installed apps, start the MATLAB uninstaller and follow the prompts to uninstall MATLAB.
Windows 10 — From the Windows Start menu, search for Apps & features and open the list of installed apps. Find the MATLAB release you want to uninstall and click Uninstall.
Windows 11 — From the Windows Start menu, search for Installed apps and open the list of installed apps. Find the MATLAB release you want to uninstall. Then click the ellipsis menu to its right, and click Uninstall.
If the uninstaller is not in the list of installed apps, or if the install process fails, see How do I uninstall MathWorks products on Windows when the uninstaller fails?
Windows (Programmatic)
To uninstall MATLAB silently, without opening the uninstaller UI, follow the instructions for your MATLAB release.
R2024a and Newer
Run the uninstaller from the command line with the mode option set
to silent. Here, <matlabroot> is the MATLAB installation
folder.
"<matlabroot>\bin\win64\MathWorksProductUninstaller.exe" --mode silent"C:\Program Files\MATLAB\R2025b\bin\win64\MathWorksProductUninstaller.exe" --mode silentR2023b and Earlier
Make a copy of the uninstaller properties file,
uninstaller_input.txt. This file is located in theuninstallfolder of your MATLAB installation folder. For example:copy "C:\Program Files\MATLAB\R2023b\uninstall\uninstaller_input.txt" C:\temp\my_uninstall.txtIn a text editor, open the file you copied and configure the uninstallation by following the instructions in the file. For example:
These options uninstall MATLAB, including all toolboxes, in silent mode, and return any output status or error messages to the specified log file.
mode=silent outputFile=C:\logs\matlab_uninstall.logThese options uninstall only the specified toolboxes. MATLAB remains installed.
mode=silent outputFile=C:\logs\matlab_uninstall.log product.Aerospace_Toolbox product.Antenna_Toolbox
When you are done, save the configured properties file.
Run the uninstaller executable, using the
-inputFileoption to specify the configured properties file as a command line argument. For example:"C:\Program Files\MATLAB\R2023b\uninstall\bin\win64\uninstall.exe" -inputFile C:\temp\my_uninstall.txt