Main Content

destroy

Remove model element

Description

example

destroy(element) removes and destroys the architecture model element element.

Examples

collapse all

Create a component named 'newComponent', then remove it from the model.

model = systemcomposer.createModel('newModel',true);
rootArch = get(model,'Architecture');
newComponent = addComponent(rootArch,'newComponent');
destroy(newComponent)

Input Arguments

collapse all

Introduced in R2019a