# Counter node loses count on upgrade

**URL:** https://discourse.nodered.org/t/counter-node-loses-count-on-upgrade/43440
**Category:** General
**Created:** [31 March 2021 07:21 UTC](https://discourse.nodered.org/t/counter-node-loses-count-on-upgrade/43440 "2021-03-31T07:21:13Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)
#### Post date: [31 March 2021 08:30 UTC](https://discourse.nodered.org/t/counter-node-loses-count-on-upgrade/43440/10 "2021-03-31T08:30:52Z")

</div>

Is it? I took that part of the flow from one of your [posts](https://discourse.nodered.org/t/node-red-contrib-counter/28360/27) actually. You have set to `delete` `flow.counter`.

In the documentation I understand it to be `delete` `msg.counter` and made the change as I could not find a reference to `delete` `flow.counter` on the "working with context page".

Should I change that back to `delete` `flow.counter`?

[https://nodered.org/docs/user-guide/context#using-context-in-a-flow](https://nodered.org/docs/user-guide/context#using-context-in-a-flow)

---

_[View the full topic](https://discourse.nodered.org/t/counter-node-loses-count-on-upgrade/43440)._
