Starting node red with empty flows

when i start node-red, it opens up the last project i was working on. To start a new one clean, I have to delete all tabs and then manually delete nodes which is lot of hassle. I tried the "project" feature but it never worked well for me. Is there a way to setup node-red to start with empty flows?

Thanks in advance!

Node RED is designed to start with a set of flows.
If Node RED started blank each time, it will be quite a dyer product :sweat_smile:

If your adamant, about having a fresh (1) tab each time, then you will need to potentially use the command line.

node-red /home/<user>/<some-new-flow-name.json>

Then to start this flow again later, repeat the above.

Unless I'm unaware of some feature, I'm not sure you can just start a fresh set of flows each time
(at least under normal use)

Starting Node RED means your flows are running, if it started with a blank set of flows, then your pervious work is not running/doing its thing

thanks for replying, tried this, not working. It still starts the last flow i was working on. almost all ide allows you option to start fresh new. Hoping node-red can do that too.

are you running Node RED as a service?
or running it on demand?

on demand!

can you run...

npm -g ls

image

Rename the folder .node-red in your user folder to something else. That will be be re-created when you restart node-red, with empty flows file and no extra installed nodes. If you want to keep the installed nodes, but with empty flows file then look at the startup output when you start node-red and it will tell you where your flows file is. Delete or rename that to start again.

The above assumes that you are not using Docker.

If it doesn't work then post the terminal output when you start node-red. Copy/paste please, not screenshot.

@Colin ! I think you had a similar question a while ago! ha ha, I was just looking at that thread:

I will follow your directions. Thanks again!

Enable project mode in the settings file then you can create new blank node-red projects on demand in the editor.

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