# Clear configuration node property/flow json properties

**URL:** <https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455>\
**Category:** Developing Nodes\
**Created:** [5 February 2021 19:05 UTC](https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455 "2021-02-05T19:05:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@justin](https://discourse.nodered.org/u/justin)\
**Post date:** [5 February 2021 19:05 UTC](https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455/1 "2021-02-05T19:05:34Z")

</div>

I have created some custom nodes that are used to connect to other servers, proxies, etc. All that works fine but what bothers me is that if a user inputs an api key/secret values into the configuration server form, those end up displaying in clear text within the "export flow" json body. Is there anyway to prevent this? Additionally, I would also like to clear the value (or salt it) after the initial form posts. Any ideas on how to do this?

I have tried clear the this.[property] within the initializing function of the node but it seems these values are likely posted and retained on the client.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [5 February 2021 19:36 UTC](https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455/2 "2021-02-05T19:36:01Z")

</div>

You should be defining them as credentials [Node credentials : Node-RED](https://nodered.org/docs/creating-nodes/credentials)

---

<div class="post-metadata">

**Author:** ![justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@justin](https://discourse.nodered.org/u/justin)\
**Post date:** [18 February 2021 15:19 UTC](https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455/3 "2021-02-18T15:19:14Z")

</div>

Thanks, that is what I was after.

---

<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:** [4 March 2021 15:19 UTC](https://discourse.nodered.org/t/clear-configuration-node-property-flow-json-properties/40455/4 "2021-03-04T15:19:37Z")

</div>

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