[BUG] device.clearSetting not working

Did you review this?

state.clear()
state.remove("version")

Both of those work, for example.