# How to delete just one alarm by scripting

**URL:** <https://forum.inductiveautomation.com/t/how-to-delete-just-one-alarm-by-scripting/97958>\
**Category:** Ignition\
**Tags:** ignition80, perspective, scripting\
**Created:** [October 30, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/how-to-delete-just-one-alarm-by-scripting/97958 "2024-10-30T14:58:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fer\_soler](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@fer\_soler](https://forum.inductiveautomation.com/u/fer_soler)\
**Post date:** [October 30, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/how-to-delete-just-one-alarm-by-scripting/97958/1 "2024-10-30T14:58:45Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 30, 2024, 6:25pm UTC](https://forum.inductiveautomation.com/t/how-to-delete-just-one-alarm-by-scripting/97958/2 "2024-10-30T18:25:09Z")

</div>

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.

> **[system.tag.getConfiguration | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-getConfiguration)**
>
> Retrieves tags from the Gateway as Python dictionaries.

> **[system.tag.configure | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-configure)**
>
> Creates tags from a given list of Python dictionaries or from a JSON source string.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 30, 2024, 9:15pm UTC](https://forum.inductiveautomation.com/t/how-to-delete-just-one-alarm-by-scripting/97958/3 "2024-10-30T21:15:16Z")

</div>

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
