GefObjectVariables.Remove (method)

Removes the specified variable from the object.
Syntax: object.Remove IndexOrName
Parameters:
Optional IndexOrName As VARIANT - The numeric index or a string containing the name of the variable. The numeric index ranges from 0 to Count-1.
Description: If the index or name does not correspond to a variable, the method does not generate an error.

Example:

Sub GefObjectVariables_Remove()
    
    Dim oCimObj As GefObject
    Dim oCimObjVars As GefObjectVariables
    Dim oCimObjVar As GefObjectVariable
    
    Set oCimObj = CimGetObject
    Set oCimObjVars = oCimObj.Variables
    
    oCimObjVars.Remove "Var1"
    
End Sub