# Stopping the Flow

**URL:** <https://discourse.nodered.org/t/stopping-the-flow/48926>\
**Category:** General\
**Created:** [26 July 2021 14:24 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926 "2021-07-26T14:24:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArunKarkare](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@ArunKarkare](https://discourse.nodered.org/u/ArunKarkare)\
**Post date:** [26 July 2021 14:24 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/1 "2021-07-26T14:24:14Z")

</div>

HI .. I am absolutely RAW and new to NODE-RED programming.  
I created a Flashing LED program as Flow1 with half second ON and half second OFF that works fine, next I created Alternately flashing two LEDs at 1 second rate as program-Flow2. But when I run Flow2, ..LED2 correctly flashes as per Flow2 rate while LED1 still continues to follow old program Flow1 rate...I do not know an easy way to stop LED1 following Flow1. I would like to know how best I can flush away all previously running programs and how to run only the lastly "Deployed" program..Please help

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 July 2021 14:28 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/2 "2021-07-26T14:28:48Z")

</div>

How are you triggering the first LED? Providing your flow would help.

In order to make code more readable and importable it is important to surround your code with three backticks  
`````  
`like this`  
`````

You can edit and correct your post by clicking the pencil icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [26 July 2021 15:35 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/3 "2021-07-26T15:35:05Z")

</div>

If your first flow has an inject node every second/half second, remove the wire coming from it and deploy.

Or you can disable the flow by double clicking on the tab name. Click "enabled" at the bottom and deploy.

---

<div class="post-metadata">

**Author:** ![ArunKarkare](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@ArunKarkare](https://discourse.nodered.org/u/ArunKarkare)\
**Post date:** [27 July 2021 02:05 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/4 "2021-07-27T02:05:10Z")

</div>

Many thanks for the reply.  
Yes..I am using INJECT node to start every Flow.  
I will improve my post writing in future, and will try disconnecting INJECT, or try "enable".

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 July 2021 09:37 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/5 "2021-07-27T09:37:22Z")

</div>

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![ArunKarkare](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@ArunKarkare](https://discourse.nodered.org/u/ArunKarkare)\
**Post date:** [27 July 2021 14:39 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/6 "2021-07-27T14:39:48Z")

</div>

Many thanks for your suggestions.  
Will definitely watch them.

---

<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:** [25 September 2021 14:40 UTC](https://discourse.nodered.org/t/stopping-the-flow/48926/7 "2021-09-25T14:40:40Z")

</div>

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