# node-Red deactivate flows

**URL:** <https://discourse.nodered.org/t/node-red-deactivate-flows/47550>\
**Category:** General\
**Created:** [23 June 2021 20:55 UTC](https://discourse.nodered.org/t/node-red-deactivate-flows/47550 "2021-06-23T20:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![automati](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@automati](https://discourse.nodered.org/u/automati)\
**Post date:** [23 June 2021 20:55 UTC](https://discourse.nodered.org/t/node-red-deactivate-flows/47550/1 "2021-06-23T20:55:41Z")

</div>

hello everyone, is there a way to deactivate individual flows with a command? so that I can automatically deactivate and reactivate it ..?

---

<div class="post-metadata">

**Author:** ![H3llsing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/h3llsing/32/40624_2.png) [@H3llsing](https://discourse.nodered.org/u/H3llsing)\
**Post date:** [24 June 2021 10:26 UTC](https://discourse.nodered.org/t/node-red-deactivate-flows/47550/2 "2021-06-24T10:26:58Z")

</div>

Here is the way to deactivate the flow via ui

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a29a687f508038601ac2054796aa10ae50fd6eae.png)

and programatically i think there is no direct option. Please correct me if im wrong.

i would use the runtime api to get the flow, add the disabled option and set the flow with the api again.  
[https://nodered.org/docs/api/modules/v/1.0/@node-red\_runtime\_flows.html#.getFlow](https://nodered.org/docs/api/modules/v/1.0/@node-red_runtime_flows.html#.getFlow)

What is your context @automati ? Where do you want to disable the flow? From a node within a flow or with another application?

---

<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:** [23 August 2021 10:27 UTC](https://discourse.nodered.org/t/node-red-deactivate-flows/47550/3 "2021-08-23T10:27:35Z")

</div>

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