# Reset/clear custom state when custom state type is a custom data type

**URL:** <https://forum.bubble.io/t/reset-clear-custom-state-when-custom-state-type-is-a-custom-data-type/179086>\
**Category:** Database\
**Created:** [November 20, 2021, 5:55am UTC](https://forum.bubble.io/t/reset-clear-custom-state-when-custom-state-type-is-a-custom-data-type/179086 "2021-11-20T05:55:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dann9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dann9/32/111547_2.png) [@dann9](https://forum.bubble.io/u/dann9)\
**Post date:** [November 20, 2021, 5:55am UTC](https://forum.bubble.io/t/reset-clear-custom-state-when-custom-state-type-is-a-custom-data-type/179086/1 "2021-11-20T05:55:10Z")

</div>

Hello, is there a way to reset/clear a custom state, when the custom state type is a custom data type? I am working on a single page app, and need some way to clear a custom state as part of the workflows.

There appears to be a way to reset a custom state when the state type is text, as described by @petter here:

> [@Clear custom state values](http://forum.bubble.io/t/clear-custom-state-values/43451):
>
> How can i clear the values inside the custom state (Tried clearing group, where the element exists but the values are not changing) This is for running a progress bar for a form filling

However, when I choose a state type that is a custom data type, this does work.

---

<div class="post-metadata">

**Author:** ![DjackLowCode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/djacklowcode/32/222536_2.png) [@DjackLowCode](https://forum.bubble.io/u/DjackLowCode)\
**Post date:** [August 28, 2022, 7:32pm UTC](https://forum.bubble.io/t/reset-clear-custom-state-when-custom-state-type-is-a-custom-data-type/179086/2 "2022-08-28T19:32:53Z")

</div>

Hey @dann9, did you figure out a solution to this?

---

<div class="post-metadata">

**Author:** ![nonono](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@nonono](https://forum.bubble.io/u/nonono)\
**Post date:** [March 9, 2023, 10:13am UTC](https://forum.bubble.io/t/reset-clear-custom-state-when-custom-state-type-is-a-custom-data-type/179086/3 "2023-03-09T10:13:09Z")

</div>

Prepare an empty CustomState of the same Type,  
You can clear it by putting it in CustomState to be cleared
