# User properties

**URL:** <https://forum.servoy.com/t/user-properties/19383>\
**Category:** Classic Servoy\
**Created:** [August 19, 2017, 3:53pm UTC](https://forum.servoy.com/t/user-properties/19383 "2017-08-19T15:53:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [August 19, 2017, 3:53pm UTC](https://forum.servoy.com/t/user-properties/19383/1 "2017-08-19T15:53:24Z")

</div>

I am using application.setUserProperty and application.getUserProperty to store and retrieve some information in the local storage f the NG client. This all works perfectly but I now need to delete one of the properties I previously set so that it is no longer in the local storage. Any idea how to do this as there does not seem to be any sort of application.deleteUserProperty() or application.removeUserProperty() method???

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [August 21, 2017, 10:09am UTC](https://forum.servoy.com/t/user-properties/19383/2 "2017-08-21T10:09:58Z")

</div>

Hi Steve,

just use:

```auto
application.setUserProperty('myProp', null)

```

You will see that:

```auto
application.getUserPropertyNames()

```

Will no longer contain the myProp value.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [August 21, 2017, 4:51pm UTC](https://forum.servoy.com/t/user-properties/19383/3 "2017-08-21T16:51:30Z")

</div>

Thanks Marc - I will try that and see how I get on.

If it works I guess it means that you cannot have a user property set with a specific NULL value.

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [August 21, 2017, 8:28pm UTC](https://forum.servoy.com/t/user-properties/19383/4 "2017-08-21T20:28:37Z")

</div>

> steve1376656734:  
> If it works I guess it means that you cannot have a user property set with a specific NULL value.

Correct, but you can consider a property to have a null value as soon as it doesn’t exist.  
I never got into a situation where this was blocking.
