Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Uninstall MathWorks Products

Uninstall MathWorks Products (Interactively)

To move a current copy of MATLAB® to another computer, you must uninstall it from the computer it is currently installed on. In this case, do not deactivate the software. You can then install MATLAB on another computer.

If you no longer have a valid license and just want to remove the software from your computer, perform the uninstall procedure first and then deactivate the software; see Deactivate an Installation (Installation, Licensing, and Activation). Conversely, you can deactivate a license without removing the software from your computer. If you need assistance for any part of this process, contact Technical Support.

The method you use to uninstall MathWorks® software from your computer varies, depending on your platform.

Remove Products on Windows Systems

To remove (uninstall) MathWorks products from your system:

  1. Shut down the MATLAB software.

  2. Start the uninstaller, using any of the following methods.

    • On systems running Windows® 10, click the Windows icon, scroll to the Ms, and then find MATLAB R2018b. Right-click MATLAB R2018b, and then click Uninstall.

    • On systems running Windows 7, click the Start menu, and select Control Panel. In the Control Panel, select Uninstall a Program in the Programs category. From the list of products displayed, click MATLAB R2018b.

    • On systems running Windows XP, click the Start menu, select Settings > Control Panel > Add or Remove Programs. Select MATLAB R2018b from the list of products and click Change/Remove.

    • Navigate to the matlabroot/uninstall/bin/$ARCH folder, where matlabroot is your MATLAB installation folder and $ARCH is a platform-specific subfolder, such as win64. Double-click the uninstaller executable, uninstall.exe.

    To learn how to use an uninstaller properties file to run the uninstaller noninteractively, see Uninstall Noninteractively (Installation, Licensing, and Activation).

  3. In the Uninstall Products dialog box, select the products you want to remove and click Uninstall.

    If you select MATLAB, you automatically remove all other MathWorks products.

    You might receive a message telling you that the product you want to uninstall has other products that depend on it. For example, most MathWorks products require the MATLAB product. To close the message and continue removing products, click OK. To change the products you had selected for deletion, click Cancel.

    If you also want to remove your MATLAB user preferences, click the Uninstall MATLAB preference files (including Command History) check box. By default, the uninstaller does not delete these preference files. MATLAB preference files contain your environment settings, such as command history and Help favorites. To find where MATLAB stores your preferences, use the prefdir command at the MATLAB prompt, as in the following example:

    prefdir
    ans =
    C:\WINNT\Profiles\username\Application Data\MathWorks\MATLAB\R2018b
    

    username is the user name of the person who runs MATLAB.

  4. (Optional) Choose whether to delete download archive files. If your MATLAB installation folder contains the archive files for downloaded products, the uninstaller displays a message asking if you want to delete these archive files. The installer stores these archive files in the matlabroot/archives folder of your installation. To remove these files, click Yes.

  5. To proceed with the removal, click the Uninstall button. The uninstaller displays the status of the operation as it progresses and displays a dialog box when the operation is complete. Click Finish to exit the uninstaller. When you uninstall a MATLAB installation, the uninstaller displays a dialog box suggesting that you deactivate the installation. For more information about deactivation, see Deactivate an Installation (Installation, Licensing, and Activation).

Uninstall Products on Linux Systems

Note

If you want to deactivate a license and remove the software, be sure to deactivate before you remove the software. When you remove the software, you also remove the application you use to deactivate the software. For more information about deactivating, see Deactivate an Installation (Installation, Licensing, and Activation).

  1. Exit the MATLAB program.

  2. Enter this command at the Linux prompt:

    rm -rf matlabroot
    

    where matlabroot represents the name of your top-level MATLAB installation folder.

Uninstall Products on macOS Systems

Note

When you remove a MATLAB installation, you remove the deactivation application, so it is best to deactivate before removing your installation. For more information about deactivating software, see Deactivate an Installation (Installation, Licensing, and Activation).

To remove a MATLAB installation:

  1. Get the user name and password of an administrator account on the macOS system. Depending on where you installed MATLAB software, you might need administrator privileges to remove it.

  2. Exit MATLAB before removing a MATLAB installation.

  3. Navigate to your MATLAB installation folder. For example, the installation folder might be named MATLAB_R2018b.app in your Applications folder.

  4. Drag your MATLAB installation folder to the trash, and then select Empty Trash from the Finder menu.

If you need to deactivate the software, see Deactivate an Installation (Installation, Licensing, and Activation).

Uninstall Noninteractively

Note

For information about installing MATLAB noninteractively, see Install Noninteractively (Silent Installation) (Installation, Licensing, and Activation).

To run the uninstaller noninteractively, perform these steps:

  1. Create an uninstaller properties file.

    Make a copy of the uninstaller properties file template, named uninstaller_input.txt, located in the uninstall folder in your MATLAB installation folder. For example, on a Windows system, you might execute this command:

    copy matlabroot\uninstall\uninstaller_input.txt C:\temp\my_uninstall.txt
    
  2. Open your uninstaller properties file using any text editor, and enter values for all the specified parameters. For example, you can specify the name of the output log file using the outputFile= parameter. The template contains detailed descriptions of each parameter with examples.

    By default, the uninstaller removes all the products in a particular MATLAB installation, however, you can specify which products to delete. In the product list in the template, remove the comment character at the beginning of the product name. In silent mode, if you specify a product for deletion that is not one of your installed products, the uninstaller exits and writes a message to your log file. If you specified mode=automated, the uninstaller displays the Product Selection dialog box and pauses, waiting for you to adjust the product selection.

  3. Save your changes to the file.

  4. Run the uninstaller (uninstall.exe), using the -inputFile flag to specify the properties file as a command-line argument.

    For example, click Start and select the Run option. In the Run dialog box, enter the uninstall command, specifying the full path of the properties file as a command-line argument:

    uninstall.exe -inputFile C:\temp\my_uninstall.txt
    

If you need to deactivate the software, see Deactivate an Installation (Installation, Licensing, and Activation).

Related Topics