# OPCUA trigger configuration clear using edge agent workflow

**URL:** <https://forums.losant.com/t/opcua-trigger-configuration-clear-using-edge-agent-workflow/5435>\
**Category:** Help\
**Tags:** workflow, opc-ua\
**Created:** [March 19, 2024, 3:08pm UTC](https://forums.losant.com/t/opcua-trigger-configuration-clear-using-edge-agent-workflow/5435 "2024-03-19T15:08:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sasikumar\_Rajendran](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Sasikumar\_Rajendran](https://forums.losant.com/u/Sasikumar_Rajendran)\
**Post date:** [March 19, 2024, 3:08pm UTC](https://forums.losant.com/t/opcua-trigger-configuration-clear-using-edge-agent-workflow/5435/1 "2024-03-19T15:08:58Z")

</div>

Is there a way to clear the OPCUA trigger configuration from the losant-edge-agent.toml file from the Losant workflow?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 19, 2024, 3:38pm UTC](https://forums.losant.com/t/opcua-trigger-configuration-clear-using-edge-agent-workflow/5435/2 "2024-03-19T15:38:36Z")

</div>

Yes; attached is a simple workflow that demonstrates this. The process is as follows (you will need to adjust this flow to fit your use case):

1. Use an [Agent Config: Get Node](https://docs.losant.com/workflows/data/agent-config-get/) to fetch the current `triggers` configuration.
2. Determine the index of which item in the `triggers` array is the one you want to remove.
3. Set the value of the item at that index to `null` (this is important; you must do this instead of simply removing that trigger config from the array!)
4. Use an [Agent Config: Set Node](https://docs.losant.com/workflows/data/agent-config-set/) to set the `triggers` property to the updated array (with the `null` item at the index of the trigger you want to remove).

[remove-a-trigger-config-develop.flow](https://forums.losant.com/uploads/short-url/4qorx1lAxyPtDcYvwXBfqWhMwO9.flow) (2.8 KB)

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 19, 2024, 3:40pm UTC](https://forums.losant.com/t/opcua-trigger-configuration-clear-using-edge-agent-workflow/5435/3 "2024-03-19T15:40:13Z")

</div>

Bear in mind this will break any triggers deployed in any workflows that use the config you are removing.
