Hello, I need to delete an element from an Automation Script… I need the correct call, as I haven’t been able to find the relevant part of the documentation.
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 16th September 2024
Hi Matej,
To delete an element from an automation script you can use the IDMs class in the following way:
IDms dms = engine.GetDms();
DmsElementId id = new DmsElementId(dataminerId, elementId);
var element = dms.GetElement(id);element.Delete();
To have access to the IDMS class it is necessary to have installed the following Nuget packages in your Automation Script Project:
– Skyline.DataMiner.Core.DataMinerSystem.Automation;
– Skyline.DataMiner.Core.DataMinerSystem.Common;
Documentation: Method Delete | DataMiner Docs
Matej Plakalovic [SLC] [DevOps Advocate] Posted new comment 16th September 2024

Thank you Daniela !