# Flow context '#hash' key name can't be deleted

**URL:** <https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945>\
**Category:** General\
**Created:** [31 August 2023 12:55 UTC](https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945 "2023-08-31T12:55:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [31 August 2023 12:55 UTC](https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945/1 "2023-08-31T12:55:13Z")

</div>

Hi There!

I started using '#rgb' values as keys in the flow context and discovered that there is issue with deleting those keys via the context pane.

I can set the value `flow.set('#123456', { ... })` in a function node, I can retrieve the value from from the context using a function node, etc.

When I want to delete the value from the flow context using the context pane, I get the following error in the browser console:

```auto
404 NOT FOUND - DELETE http://host:1880/<...>/95e41632f97921ad/#123456?store=memory

```

Because the variable name begins with '#', the delete request fails.

I tested this on 3.0.2 and 3.1.0-beta4 and got the same error.

It's definitely an edge case using '#' prefix for a key name but it can happen...

Cheers!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [31 August 2023 13:22 UTC](https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945/2 "2023-08-31T13:22:11Z")

</div>

> [@gregorius](#):
>
> When I want to delete the value from the flow context using the context pane, I get the following error in the browser console:
> 
> ```auto
> 404 NOT FOUND - DELETE http://host:1880/<...>/95e41632f97921ad/#123456?store=memory
> 
> ```

Look like the variable name should be URL Encoded before calling the API

Definitely one for [a new issue](https://github.com/node-red/node-red/issues)

---

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [31 August 2023 13:46 UTC](https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945/3 "2023-08-31T13:46:04Z")

</div>

> [@Steve-Mcl](#):
>
> Definitely one for [a new issue](https://github.com/node-red/node-red/issues)

Done - [Flow context ‘#hash’ key name can’t be deleted · Issue #4295 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/4295)

---

<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:** [30 October 2023 13:47 UTC](https://discourse.nodered.org/t/flow-context-hash-key-name-cant-be-deleted/80945/4 "2023-10-30T13:47:00Z")

</div>

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