Main Content

slDestroyToolstripComponent

Destroy Simulink Toolstrip component

Description

example

slDestroyToolstripComponent(component) destroys the specified Simulink® Toolstrip component and its resource directory.

Examples

collapse all

Suppose you have a Simulink Toolstrip component that you no longer need named custom.

Delete the component named custom. In the MATLAB® Command Window, enter:

slDestroyToolstripComponent("custom")

Input Arguments

collapse all

Component name, specified as a character vector or string scalar.

The component name appears in the sl_toolstrip_plugins.json file as the value for the "Name" property. Do not edit this file.

Example: slDestroyToolstripComponent("custom")

Data Types: char | string

Introduced in R2021b