# How to "wipe" node.status() - not as shown

**URL:** <https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479>\
**Category:** General\
**Created:** [22 June 2019 06:44 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479 "2019-06-22T06:44:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 June 2019 06:44 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/1 "2019-06-22T06:44:33Z")

</div>

I have tried researching the subject but to no avail.

I have some code that sets the `node.status()` of a node.

Alas it doesn't _clear_ it in other cases. So I went off looking/searching.

[From the manual](https://nodered.org/docs/creating-nodes/status)

Quote:

If the status object is an empty object, `{}` , then the status entry is cleared from the node.

Ok. Not **exactly** correct I have found.

It has to be more like:  
`node.status({});` but.....

That worked (after a while) on one occurrence. I stupidly deleted the node as things moved on.

I am wanting it again.

Now I am seeing an error:

![Screenshot%20from%202019-06-22%2016-41-36](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fc58af96f15b86cdba811256eb9a88d259948c66.png)

I may be wrong, but I suspect _ **a puppet master - somewhere - having a great laugh at my expense.** _

C'mon. I can't believe I am this silly to not be getting what is wrong here.  
I had it working. Now it won't.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [22 June 2019 06:52 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/2 "2019-06-22T06:52:38Z")

</div>

This is a know bug/problem with the beta release.  
Nick says it has been fixed in the upcoming release.  
Here's a copy of the issues that have been reported.

* * *

[dynamicdave](https://discourse.nodered.org/u/dynamicdave)

[25d](https://discourse.nodered.org/t/node-red-1-0-0-beta-2-released/11504/19)

I've just upgraded to NR v1.0.0-beta-2 and found the fill and/or shape attribute doesn't work.  
Here's a snippet that used to work fine in the previous release.  
Cheers from David

var fsm\_state = flow.get("state\_counter");

if (fsm\_state === 0 || fsm\_state == 1){  
msg.payload = 1;  
node.status({fill:"red",shape:"dot",text:"Red ON"});  
}

else {  
msg.payload = 0;  
node.status({});  
}

return msg;

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4d1b654cc38ee406b1f8140d2977e9b04402cfcc.jpeg "hotNipi")](https://discourse.nodered.org/u/hotNipi)

[hotNipi](https://discourse.nodered.org/u/hotNipi)

[1](https://discourse.nodered.org/t/node-red-1-0-0-beta-2-released/11504/19#)

[25d](https://discourse.nodered.org/t/node-red-1-0-0-beta-2-released/11504/20)

After some testings I found that fill and shape attribute doesn't work after first occurrence. And somehow the debug node can still handle the status with shape correctly.

Works until you once set empty object to status  
`node.status({});`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 June 2019 06:59 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/3 "2019-06-22T06:59:18Z")

</div>

Not wanting to be a pain, and I appreciate it is a known problem.

(But.)

It seems to be a bit specific in which OS it fails.

RPI NR.... Ok.

Ubuntu NR.... Na. Not working.

Do you want/need piccies?

---

<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:** [22 June 2019 07:00 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/4 "2019-06-22T07:00:49Z")

</div>

@Trying_to_learn the line of code with the error is because you have a `:` at the end of the line and not an`;`.

This is nothing to do with the issue @dynamicdave is referring to.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 June 2019 07:02 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/5 "2019-06-22T07:02:12Z")

</div>

Oops. Hangs head.

Sorry.

I am in the midst of trying to rewrite a whole lot of my flows to a _newer_ layout/methodology.

Painful at best, and not helped by me making baby mistakes.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [22 June 2019 07:02 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/6 "2019-06-22T07:02:13Z")

</div>

Oops - sorry, didn't spot the : colon (which should be a semicolon).  
Please ignore my post.

---

<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:** [22 June 2019 07:03 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/7 "2019-06-22T07:03:43Z")

</div>

> [@Trying\_to\_learn](#):
>
> If the status object is an empty object, `{}` , then the status entry is cleared from the node.
> 
> Ok. Not **exactly** correct I have found.
> 
> It has to be more like:  
> `node.status({});`

Aside from the syntax error in your code, what is not ' **exactly**' correct? It says you have to set status to an empty object. That is exactly what `node.status({})` does. Why do you say 'it has to be more like...' ... What did you think it meant?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 June 2019 07:08 UTC](https://discourse.nodered.org/t/how-to-wipe-node-status-not-as-shown/12479/8 "2019-06-22T07:08:09Z")

</div>

Well, to make the `node.status` become _Clear_ the line I need to enter is:

`node.status({})`

Not

`node.status{};` As I read it. (But that's me.)

I am still not good enough to add the extra stuff when it says the node.status object empty....

So, (now understood) that is what is put --in-- the `node.status()` part. Layers. Ooops.  
I got it messed up.  
(It may be _better_ if I could be _not me_ but then I wouldn't be me. And I think that wouldn't be nice.)
