Main Content

destroy

Remove model element

Description

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

example

Examples

collapse all

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

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

Input Arguments

collapse all

Version History

Introduced in R2019a