# Set variable to null in a change node?

**URL:** <https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389>\
**Category:** General\
**Created:** [13 March 2024 04:22 UTC](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389 "2024-03-13T04:22:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [13 March 2024 04:22 UTC](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389/1 "2024-03-13T04:22:58Z")

</div>

Set variable to null in a change node? I don't want to delete the variable, just set it to null. In function node this is simplistic. but I guess until now I have never need to do it in a simple change node? Is it just select expression then 'null', can't be that easy can it?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [13 March 2024 06:18 UTC](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389/2 "2024-03-13T06:18:21Z")

</div>

Sorry, my suggestion did not work

But this seems to

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b530fc3a2ae7c6f085039bdf1bba3f99949b837.png)

---

<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:** [11 June 2024 06:19 UTC](https://discourse.nodered.org/t/set-variable-to-null-in-a-change-node/86389/3 "2024-06-11T06:19:11Z")

</div>

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