destroy

Remove and destroy a model element

Description

destroy(element) removes and destroys the model element.

Examples

collapse all

Create a component and then remove it from the model.

newcomponent = addComponent(rootArch,'NewComponent');
destroy(newcomponent)

Input Arguments

collapse all

Data Types: systemcomposer.arch.Element | systemcomposer.interface.SignalInterface | systemcomposer.interface.SignalElement | systemcomposer.profile.Property

Introduced in R2019a