# Working with State Lists - How to Clear Them?

**URL:** <https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637>\
**Category:** Need help\
**Created:** [June 2, 2018, 9:03am UTC](https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637 "2018-06-02T09:03:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![antony](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/antony/32/19446_2.png) [@antony](https://forum.bubble.io/u/antony)\
**Post date:** [June 2, 2018, 9:03am UTC](https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637/1 "2018-06-02T09:03:24Z")

</div>

Hello everyone…

So I am working with a couple of Lists of Things which are states rather than database fields… and with the world of states, the list operations work a bit differently.

With a List that is a database field, you get these six nice list functions:

![image](https://us1.discourse-cdn.com/bubble/original/3X/3/8/385b2b5498d069f60df5cf30e3c0e234a81b2b46.png)

But they don’t appear for you when working with a List that is a state.

So reading around on the forum, I have worked out that you can substitute some of the list functions

“add” :plus item  
“remove” :minus item

But how can I reproduce “clear list”?

The only thing I can think of is to define a dummy empty list in my database and assign that to my state!

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [June 2, 2018, 11:44am UTC](https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637/2 "2018-06-02T11:44:04Z")

</div>

Hey @antony! All you need to do is set the state to a blank value. Literally just leave it blank! No need to save a blank in the database.

---

<div class="post-metadata">

**Author:** ![antony](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/antony/32/19446_2.png) [@antony](https://forum.bubble.io/u/antony)\
**Post date:** [June 2, 2018, 12:05pm UTC](https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637/3 "2018-06-02T12:05:29Z")

</div>

Hey Gaby @romanmg…

Well that was simple, wasn’t it? I intuitively didn’t want to do that because it felt like leaving the value field empty would give me an “issue”, but low and behold, that isn’t the case.

Thanks for helping me out and for your quick reply… and for all your lovely videos! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 11, 2018, 9:03am UTC](https://forum.bubble.io/t/working-with-state-lists-how-to-clear-them/30637/4 "2018-08-11T09:03:29Z")

</div>

Closed on August 11, 2018, 9:03am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
