Auto clear store after callback


Is there anyway to auto clear a store after a callback without having to use a button e.g. plotly dash - I cannot figure out how to clear the local store when using dcc.Store - Stack Overflow

My flow, I generate a store, I check if the store is not empty an action that triggers a callback. After that callback occurs, I’d like it to auto trigger the clear.

Hi @mr_pony

Is not clear (to me) in your explanation when do you want to have the data stored and when do you want to be cleared.

I was over thinking it. Using the example in the attached is pretty self explanatory. Just swap out the button with any other input type and modify the callback input.