How to delete just one alarm by scripting

Hello everyone,

I'm working with Ignition 8.0.15, and I have a tag configured with multiple alarms. I'm looking for a way to delete only one specific alarm from this tag without overwriting the entire tag configuration and without removing all alarms. I just want to remove that particular alarm, leaving the others intact.

Does anyone know of a method to achieve this, or if there are any scripting options available to target and remove a single alarm?

Thanks in advance for any advice!

You would need to pull the tag configuration with system.tag.getConfiguration, remove the specific alarm from the configuration, and pass the modified configuration back to system.tag.configure.

You might be able to pull out only the alarm configuration from the original and pass that back (after removing the one alarm) to system.tag.configure with the collision mode set to merge.

To clarify, there is no function to remove an alarm from a tag; you must get the configuration of all alarms, remove the one you don't want, then write the new config back to the tag