Removal of plugin not removing config store
It appears that when you remove a plugin it doesn't remove the configuration store information.
In my plugin I run plugin_store = JSONConfig('plugins/somename') and c = config_store().get(storename, storedefaults) along with c.get and c.set. Data saves and loads ok.
However, if I remove the plugin either by the GUI or cli, when I re-add my plugin and start it, the last values saved in the store are visible to the plugin. Because I stored some incorrect data one time, this caused some problems in plugin development. Although I was able to get around it by saving an empty data set to the store before continuing.
I expected the plugin removal to remove any stored information for the plugin. Is it leaving the information just in case, or is it a bug?
Is there a way to manually remove the store (in order to give instructions for a complete removal)?
|