주요 콘텐츠

matlab.addons.uninstall

R2026b

(Not recommended) Uninstall add-on

matlab.addons.uninstall is not recommended. Use mpmuninstall instead. (since R2026b) For information on updating your code, see Version History.

Description

matlab.addons.uninstall(name) uninstalls the add-on with the specified name. You can uninstall most add-ons from the MATLAB® user community. Uninstalling MathWorks® products and support packages is not supported.

If multiple versions of an add-on are installed, you must either specify a version or 'All' to uninstall all versions.

Uninstalled add-ons are removed from the MATLAB path, but the files and folders associated with the add-on are not removed from disk.

example

matlab.addons.uninstall(identifier) uninstalls the add-on with the specified identifier.

matlab.addons.uninstall(___,version) also specifies the version of the add-on to uninstall. Use this syntax with any of the arguments in previous syntaxes.

matlab.addons.uninstall(___,'All') uninstalls all installed versions of the specified add-on, if multiple versions are installed.

Examples

collapse all

Suppose that you have a toolbox called Random File Name Creator installed on your system. Get the list of installed add-ons and uninstall the Random File Name Creator toolbox.

Get the list of installed add-ons.

addons = matlab.addons.installedAddons
 addons =

  1×4 table

             Name                   Version     Enabled                  Identifier              
    ___________________________    _________    _______    ______________________________________

    "Random File Name Creator"     "1.0"         true      "75442144-f751-4011-bf0e-32b6fb2f1433"

Uninstall the Random File Name Creator toolbox.

matlab.addons.uninstall('Random File Name Creator');

Input Arguments

collapse all

Name of the add-on that you want to uninstall, specified as a character vector or string. To determine the name of an add-on, use the matlab.addons.installedAddons function.

Unique identifier of the add-on that you want to uninstall, specified as a character vector or string. To determine the unique identifier of an add-on, use the matlab.addons.installedAddons function.

Version of the add-on that you want to uninstall, specified as a character vector or string. To determine the version of an add-on, use the matlab.addons.installedAddons function.

Version History

Introduced in R2018b

expand all