Remove method (Folders object)

Removes a Folder object from the Folders collection and deletes the folder from the HMI tag database. This also deletes all its subfolders and tags.
The object to be removed is specified by its position in the collection or by name.
Syntax
Folders
.
Remove
(
Index
)
where
Folders
is the name of a Folders collection or an expression that evaluates to a Folders collection.
Index
is an expression that specifies the object to be returned.
  • If it is a numeric expression,
    Index
    specifies the object's position in the collection and is a number from 1 to the value of the collection's
    Count
    property.
  • If it is a string expression,
    Index
    is the name of an object in the collection.
Remarks
An error occurs if the value of
Index
does not match an existing member of the collection.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal