How to 'clean' the item or binding?

I’ve temporary added an item with modbus binding to test the serial port. Test was successful and I commented out this new item in my .items file and also commented out the lines in modbus.cfg, then restarted OH. After restart I noticed a lot of error messages from modbus binding (USB adapter was disconnected already).
For me it looks like the previous configuration has been cached. How can it be cleared in the future?

1 Like

From Karaf:

config:delete org.openhab.binding.modbus

or delete file /var/lib/openhab2/config/org/openhab/modbus.config

1 Like

Thanks, will try next time. I’ve seen this tutorial before but was not sure what is suitable for my situation.

great!! :smile::smile:

thank you Angelos for the suggestion

I lost a lot of time in trouble last week with some old configuration of modbus cached there in the ‘secret directory’… but now all is running

I strongly suggest to include that explicity in the wiki to avoid any other maker to loose time for nothing