Customization > Automation Interface > Functions > Functions for Objects > Delete function (automation interface)
Delete function (automation interface)
Syntax:
Delete
The Delete function deletes an object from the model.
* 
If you delete an object and that object is linked to other objects through automation interface associations that have their Propagate Delete flag set to TRUE, objects that are linked through those associations will also be deleted. For example, a Class is related to its child Attributes through the Attribute association, which has its Propagate Delete flag set to TRUE. If you delete a Class, its Attributes will also be deleted.
On delete scripts are not executed when called from outside the Modeler UI.
Examples
This example deletes a Class named DDIT from the model:
Set objClass = Dictionary.Item("Class","DDIT")
Call objClass.Delete