# global.set("wled",true,"storeInFile")

**URL:** <https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779>\
**Category:** General\
**Created:** [12 July 2023 23:05 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779 "2023-07-12T23:05:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Post date:** [12 July 2023 23:05 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/1 "2023-07-12T23:05:49Z")

</div>

hello  
I have switched to context storage [https://forum.iobroker.net/assets/uploads/files/3639\_sc1.jpg](https://forum.iobroker.net/assets/uploads/files/3639_sc1.jpg)  
If I now look at the written value I see 2 pieces in the context overview. I assume that one is memory and the second is in the file system. How can I determine which of the two is the one from the memory in the display. I want to delete this one to see if I have implemented the changes correctly to every flow?  
 ![context](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2ad91d259fe8d2b3bc2476dadb1831567e1b6858.jpeg)

it seems that a flow is still writing to memory or the node containing global.set("wled",true, "storeInFile") has not yet updated the false.  
I don't want to delete both just like that, otherwise my light control will get messed up.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [12 July 2023 23:56 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/2 "2023-07-12T23:56:23Z")

</div>

This is the nuclear option but if you stop and restart node red the one left is the one in the file system.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [13 July 2023 04:50 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/3 "2023-07-13T04:50:42Z")

</div>

In a change node using JSONata or a function node using Javascript `global.set("wled", undefined, "memory")`, you can set the global to `undefined`, which will delete it.  
e.g.

 ![chrome_screenshot_1689223619092](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/ea2f6c03c01ccdbe506c86abd2d088eb52b99b11.png)

What version of node-red are you running as 3.02 shows what context the global var is, as seen in image.

---

<div class="post-metadata">

**Author:** ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Post date:** [13 July 2023 07:21 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/4 "2023-07-13T07:21:59Z")

</div>

Hi  
THX for the answers.  
I am running v3.02 und I do not see this function? Do I have to activate it somewhere?

---

<div class="post-metadata">

**Author:** ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Post date:** [13 July 2023 07:54 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/5 "2023-07-13T07:54:40Z")

</div>

I have just made an interesting observation. If I open node red via the brouser directly, I have the view I posted above.  
If I open node red via the IObroker interface, the default and storeInFile information described by E1cid is available. Strange the different display  
Has anyone observed something similar or do I have other differences that I haven't found yet?

---

<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:** [13 July 2023 08:12 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/6 "2023-07-13T08:12:05Z")

</div>

Which browser/version are you using?

Force a browser cache clear via the browser menus.

---

<div class="post-metadata">

**Author:** ![edstobi](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Post date:** [13 July 2023 08:42 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/7 "2023-07-13T08:42:31Z")

</div>

THX it is my chrome browser, using Firefox I can see it

---

<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:** [13 July 2023 09:05 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/8 "2023-07-13T09:05:20Z")

</div>

Clear the cache via the browser menus and force a page reload.

---

<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:** [11 September 2023 09:05 UTC](https://discourse.nodered.org/t/global-set-wled-true-storeinfile/79779/9 "2023-09-11T09:05:58Z")

</div>

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