# Clear everything from node-red

**URL:** <https://discourse.nodered.org/t/clear-everything-from-node-red/58152>\
**Category:** General\
**Created:** [11 February 2022 13:58 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152 "2022-02-11T13:58:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilou8830](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pilou8830](https://discourse.nodered.org/u/pilou8830)\
**Post date:** [11 February 2022 13:58 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/1 "2022-02-11T13:58:24Z")

</div>

hello how to clear all flows and subflows correctly.  
Because it seems that he remembers everything.  
on the image below we see in subflows 2 times the same things.

 ![Capture300](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/483c51cf721b4551749bf09b013755fc572126d8.jpeg)

when we do tests and have them erased how we do it.  
I double click on the tab and erase but it still keeps it in memory and I don't want that.  
thank you for helping me

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 February 2022 15:29 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/2 "2022-02-11T15:29:48Z")

</div>

Do you mean you want to start with a completely empty flow? If so then you can delete the flows file and restart node-red and it will create a new empty file.

I don't understand why what you are suggesting does not work, however. I wonder whether you have some hidden flows. Check in the Information tab in the right hand pane to see what you have.

---

<div class="post-metadata">

**Author:** ![pilou8830](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pilou8830](https://discourse.nodered.org/u/pilou8830)\
**Post date:** [11 February 2022 18:56 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/3 "2022-02-11T18:56:50Z")

</div>

Thanks Colin.  
ok but how to delete the feed file?  
if I want to delete Alarme\_v01, so all the elements on the "Alarme\_v01" page image below how do we do it?

 ![Capture301](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c0133dd01989a51ace9c4e3d6b64a0eb6431790.jpeg)

to see the hidden streams, I did: search you flows + flow

 ![Capture302](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/13777d1d7a88e781afc091c7596b53dc1d2c53fa.jpeg)

I ask how to delete the example files that I downloaded from the internet to learn, but then I don't know how to delete them and keep only the pages that I modified

I'm a beginner and for me it's a bit complicated.  
thank you for your patience

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [11 February 2022 19:23 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/4 "2022-02-11T19:23:16Z")

</div>

So,

**If you want to delete node modules**  
That is, something you have installed from the palette menu, you can go to the palette menu again and remove.

**If you want to delete a single flow**  
double click the flow and choose **delete**

**If you want to delete a subflow**  
double click the subflow and choose **delete** (along the top)

**If you want to nuke all flows/subflows**

- Stop Node red
- Delete the flows file usually **~/.node-red/flows.json**

**If you want to start fresh - I.e no flows/modules installed (a clean state)**  
Just note: this will remove everything - it will be a clean state in Node RED

- Stop Node red
- Delete everything in **~/.node-red/**

---

<div class="post-metadata">

**Author:** ![pilou8830](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pilou8830](https://discourse.nodered.org/u/pilou8830)\
**Post date:** [12 February 2022 04:22 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/5 "2022-02-12T04:22:41Z")

</div>

Thank you marcus-j-davies, it's already clearer.

- Delete the flows file usually **~/.node-red/flows.json** \>\>\> to do this you have to connect to the Raspberry Pi4??

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 February 2022 07:34 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/6 "2022-02-12T07:34:23Z")

</div>

That would be the usual way. Is that a problem? Presumably you already do that for doing backups and so on.

---

<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:** [13 April 2022 07:34 UTC](https://discourse.nodered.org/t/clear-everything-from-node-red/58152/7 "2022-04-13T07:34:55Z")

</div>

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