You can do a clean install of NR by first making an offsite copy of the node red folder inside the addon config folder. This folder is located on the same level that your media folder is. This is not the NR folder inside /config.
Once that is copied then go to node red and export all your flows and save offsite. Uninstall NR, flip the switch to on to permanently delete the addon. Reboot the host, in the reboot menu there is a drop down that will give you the option to reboot the host.
Check to see that the NR folder is no longer in addon config folder. If it is delete and reboot host again. Install nodered and import your flows. You will lose all you added nodes and a message will appear for all missing nodes in your flow. Then start to install the missing nodes with the palette manager.
This is also going to delete any context storage inside NR. This is something you have to setup, so if it doesn’t ring a bell, don’t worry about it.