Customization > Automation Interface > Functions > Functions for Collections > Remove function (automation interface)
Remove function (automation interface)
Syntax:
Remove("<association>")
Remove(""<association>","<Index>")
Remove(""<association>",<object>)
Where:
<association> is a string that specifies the association type through which object are removed. For more information, see Identifying associations...
<index> is a string that specifies the name (typically) of an object to remove through the specified association.
<object> is an object that specifies the object to remove through the specified association. For more information, see Identifying objects...
Remove("<association>") removes all objects that are related to the active object through the specified association.
Remove("<association>","<index>") and Remove("<association>",<object>) remove an object related to the active object through the specified association.
If you remove objects from an association that has its Propagate Delete flag set to TRUE, the objects will be deleted from the model. 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 use the Remove function to remove owned Attributes from a Class, those Attributes will be deleted from the Model.
Examples
This example removes the Initialize operation from Class1:
Set objItem = Dictionary.Item("Class", "Class1")
Call objItem.Remove("Operation","Initialize")