# What should 'Restart Flows' do?

**URL:** <https://discourse.nodered.org/t/what-should-restart-flows-do/100066>\
**Category:** General\
**Created:** [1 January 2026 13:43 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066 "2026-01-01T13:43:55Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [6 January 2026 16:23 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/21 "2026-01-06T16:23:44Z")

</div>

It seems that

- Full deploy deletes node scoped context variables but not flow or global context.
- Deploy modified flows will only delete node scoped variables if the node that set it is modified - simply moving it does not suffice.
- Restart flows also deletes node-scoped context but not flow or global.

This is not what the documentation [Working with context](https://nodered.org/docs/user-guide/context) says - only some context is cleared by a restart.

> By default, context is stored in memory only. This means its contents are cleared whenever Node-RED restarts. With the 0.19 release, it is possible to configure Node-RED to save context data so it is available across restarts.

But I believe the reason @Colin asked the question is that none of these options will reset a dashboard chart to the defaults once you have borked it.  
Since `Restart flows` is insufficient, can we have a fifth option `Restart Node-red` in the dropdown?

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [6 January 2026 16:43 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/22 "2026-01-06T16:43:54Z")

</div>

This is why in the PLC world there's a warm reset (keep stored variables) and a cold reset (clear all context and restart as if a first boot)

We should have the option of both, but right now we only have the warm reset.

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [6 January 2026 16:45 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/23 "2026-01-06T16:45:25Z")

</div>

This is referring to the different context stores, which have been around a while and need to be intentionally set up to persist (EG, adding a file system context store and using it in your flow)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [6 January 2026 16:47 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/24 "2026-01-06T16:47:11Z")

</div>

> [@gemini86](#):
>
> but right now we only have the warm reset.

A full cold restart for a node.js app depends, I believe, on how it is run. Node-RED can be run in many different ways, without knowing which, how can node-red know how to restart?

But maybe there could be some kind of reload rather than restart? Not sure how feasible that would be. Perhaps others with better knowledge of core could say.

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [6 January 2026 16:48 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/25 "2026-01-06T16:48:44Z")

</div>

I agree that the button probably isn't going to do a full app restart, but we should have the option to completely revert node-red's state back to unloading and reloading the current flow file as if starting fresh- also clearing any memory based context stores.

For now I just use an exec node to do a restart when needed during development. This unfortunately for most cases, requires root privileges and a nopassword setup, which is not very secure...and should be disabled once deployed, so again I think V5 should include a new button in the dropdown.

---

<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:** [6 April 2026 16:49 UTC](https://discourse.nodered.org/t/what-should-restart-flows-do/100066/26 "2026-04-06T16:49:33Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/what-should-restart-flows-do/100066.md?page=1)
