# How to cancel the action of a delay

**URL:** <https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859>\
**Category:** General\
**Created:** [30 June 2021 18:20 UTC](https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859 "2021-06-30T18:20:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Master98](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@Master98](https://discourse.nodered.org/u/Master98)\
**Post date:** [30 June 2021 18:20 UTC](https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859/1 "2021-06-30T18:20:55Z")

</div>

I am new to node-red and I want to know how to cancel the action of a delay if it is already activated by sending another msg.  
if i send a msg.payload 176 \> to the limit it sends a "true" to a delay that if in 10 s it doesn't normalize it sends a 0. i want to stop the delay sending another msg if it normalizes to 176.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 June 2021 18:38 UTC](https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859/2 "2021-06-30T18:38:00Z")

</div>

Welcome to the forum @Master98

I am not exactly sure what you are asking but I wonder whether the trigger node might do what you want

---

<div class="post-metadata">

**Author:** ![Master98](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@Master98](https://discourse.nodered.org/u/Master98)\
**Post date:** [1 July 2021 06:28 UTC](https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859/3 "2021-07-01T06:28:39Z")

</div>

I found the answer reading the node information the answer was sending a reset msg.reset, thank you very much for the help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 July 2021 06:29 UTC](https://discourse.nodered.org/t/how-to-cancel-the-action-of-a-delay/47859/4 "2021-07-15T06:29:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
