Main Content

destroy

Remove model element

Description

example

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

Examples

collapse all

Create a component, 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

Version History

Introduced in R2019a