Old context variables are still accessable after deploy

Hi All,

I've just noticed that if I rename a context variable in a function say:

flow.set("a",1);

to:

flow.set("b",1);

the old context variable "a" still lingers there after deploy (node-red 1.0.2). At least, flow.keys() lists both.

Isn't it possible to get rid of "a" during deploy?

Best regards,
r0ller

No. Context does not get cleared as part of a deploy. If you want to remove something from context you must set it to undefined.

Ok, thanks! Will need to keep an eye on it or restart node-red :slight_smile:

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