Method: Remove for Data
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: Remove for Data
Method: Remove for Data
Deletes a list of elements from the Data Portal, in the script interface for internal data.
Object.Remove(ElementListToDelete)
| Object | Data Object with this method |
| ElementListToDelete | ElementList <Data> Specifies the list of elements to delete. |
![]() | Note After deleting the list, DIAdem renumbers the channels in ascending order starting at one according to the Data Portal structure view. |
The following example generates a list of elements with all channels whose names start with the letter S and then deletes the channels again:
| VBScript | Python |
Dim oMyAssgnList Call Data.Root.Clear Call DataFileLoad("Example.tdm") Set oMyAssgnList = Data.GetChannels("S*") Call Data.Remove(oMyAssgnList)
