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

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:

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

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

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