# Mass-disable nodes by criteria

**URL:** https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463
**Category:** General
**Created:** [9 February 2020 17:55 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463 "2020-02-09T17:55:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)
#### Post date: [9 February 2020 17:55 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/1 "2020-02-09T17:55:46Z")

</div>

Is there a way to mass-disable all nodes by criteria (a node type or name regexp for example) via ui and/or programmatically? I have flows consisting of webhooks (http callbacks) and series of api calls taking some time to execute. Currently NR terminates all nodes instantly on shutdown thus dropping msgs in the middle of the flows. Disabling all http callbacks would allow a graceful shutdown.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [9 February 2020 18:07 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/2 "2020-02-09T18:07:19Z")

</div>

There is no way to mass disable nodes as you describe, but there is ongoing work around making the shutdown more graceful... [https://github.com/node-red/designs/pull/16](https://github.com/node-red/designs/pull/16)

---

<div class="post-metadata">

### Author: ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)
#### Post date: [9 February 2020 18:17 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/3 "2020-02-09T18:17:48Z")

</div>

Thanks for the link! Will check the proposal

---

<div class="post-metadata">

### Author: ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)
#### Post date: [10 February 2020 05:36 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/4 "2020-02-10T05:36:02Z")

</div>

Posting in case someone else needs it, too. There is Disable/Enable Selected Nodes option in Action List menu (Ctrl/Cmd+Shift+P in the editor). If the callback nodes are grouped so that they could be easily selected with the lasso, then this will save many clicks.

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [10 February 2020 12:06 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/5 "2020-02-10T12:06:13Z")

</div>

Thanks for finding that out. I just bound the keyboard shortcuts for "Disable/Enable Selected Nodes" to `ctrl-shift-d` and `ctrl-shift-e`. 🙂

---

<div class="post-metadata">

### Author: ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)
#### Post date: [10 February 2020 12:18 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/6 "2020-02-10T12:18:19Z")

</div>

Thanks for the idea on binding the keyboard shortcuts. Did the same 🙂

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [10 February 2020 12:23 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/7 "2020-02-10T12:23:26Z")

</div>

I read about the new commands back when v1.0 was released, but I completely forgot about it. 🙈

Those disable/enable shortcuts are really useful when developing and testing custom nodes.

---

<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: [10 April 2020 12:23 UTC](https://discourse.nodered.org/t/mass-disable-nodes-by-criteria/21463/8 "2020-04-10T12:23:28Z")

</div>

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