# Cannot delete flow variable

**URL:** <https://discourse.nodered.org/t/cannot-delete-flow-variable/18861>\
**Category:** General\
**Created:** [6 December 2019 12:11 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861 "2019-12-06T12:11:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 December 2019 12:11 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/1 "2019-12-06T12:11:54Z")

</div>

While trying to setup a oauth2 flow where I want to store the bearer token in a flow variable, I found that I cannot delete the token as I need to scroll all the way to the right to access the icons:

 ![Screenshot 2019-12-06 at 13.08.08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0a9c7a0a404a94618421ee81b91517c89aa3a2ed.jpeg)

When clicking the delete icon, nothing happens.

I can delete variable via a flow or remove the persistent file and restart NR, but that is not they way to go I believe.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [6 December 2019 12:40 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/2 "2019-12-06T12:40:38Z")

</div>

You can make the panel wider by pulling on the left of it!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 December 2019 13:14 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/3 "2019-12-06T13:14:22Z")

</div>

> [@bakman2](#):
>
> I can delete variable via a flow... but that is not they way to go I believe.

Why do you think removing a flow variable in the flow is not the way to go? That is why it is allowed, so you can programatically remove them.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 December 2019 13:52 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/4 "2019-12-06T13:52:11Z")

</div>

Yes you are correct, i meant: i prefer to use the sidebar to control them.

@ghayne, the value is very long and does not fit on my screen.

Perhaps it is an enhancement request; render the icons in the viewport instead of the right side of the element containing the value.  
I have now changed it to sit within an object, the value will then be wrapped and can be deleted.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [6 December 2019 14:10 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/5 "2019-12-06T14:10:10Z")

</div>

> [@bakman2](#):
>
> the value is very long and does not fit on my screen.

I thought as much.

---

<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:** [6 December 2019 15:09 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/6 "2019-12-06T15:09:34Z")

</div>

> [@bakman2](#):
>
> Perhaps it is an enhancement request; render the icons in the viewport instead of the right side of the element containing the value.

Sounds like a bug to me - the buttons ought to be visible regardless of the length of the value and regardless of whatever other options you have to workaround the fact the buttons have been pushed off screen.

Can you raise an issue with the details please?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 December 2019 15:45 UTC](https://discourse.nodered.org/t/cannot-delete-flow-variable/18861/7 "2019-12-06T15:45:10Z")

</div>

[Done](https://github.com/node-red/node-red/issues/2400).
