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 toolbox





matlab.addons.toolbox.uninstallToolbox(installedToolbox) uninstalls the specified toolbox. MATLAB® removes all the files and folders associated with the toolbox from the path and then deletes them.


collapse all

Assume that you previously installed two toolboxes, myToolbox and myOtherToolbox, and you want to uninstall the myToolbox toolbox.

Obtain the structure array of installed toolboxes, and display it as a table.

toolboxes = matlab.addons.toolbox.installedToolboxes;
ans = 

          Name          Version                     Guid                 
    ________________    _______    ______________________________________

    'myToolbox'         '1.5.2'    'd0169b4a-fe74-463f-981a-26160c94cbe5'
    'myOtherToolbox'    '1.0'      '1deb72c1-725f-4e1b-a1a7-dcc8e75453bb'

Read the table and note the location of the toolbox you want to uninstall. Since myToolbox is listed first in the table, information about it can be found in toolboxes(1).

installedToolbox = toolboxes(1)
installedToolbox = 

       Name: 'myToolbox'
    Version: '1.5.2'
       Guid: 'd0169b4a-fe74-463f-981a-26160c94cbe5'

Uninstall the toolbox. If the uninstallation process is successful, MATLAB does not display output.


Input Arguments

collapse all

Information about the toolbox to uninstall, specified as a structure. The structure is an element of the structure array returned by the matlab.addons.toolbox.installedToolboxes function, and it has the following fields.

NameName of the toolbox
VersionToolbox version
GuidUnique toolbox identifier

MATLAB uses the Guid field to determine which toolbox to uninstall.

Data Types: struct


You can uninstall toolboxes from the Add-On Manager UI. For more information, see Manage Your Add-Ons.

Introduced in R2016a