There are 2 ways that I have seen on the forums:
- Remove the device/app that has the old states and add it back
- Call a function that you create in the code to clean up the variables using
state.remove("oldvariablename")
There are 2 ways that I have seen on the forums:
state.remove("oldvariablename")