If you create an add-on which replaces existing menus in order to ex. add elements in between the existing elements, installing it works fine, but uninstalling it removes the entire menu. So the question is how to uninstall such an add-on and restore the previous menus?
In this folder:
Blender Foundation\Blender 2.91\2.91\scripts\startup\bl_ui\ the default ui scripts are located, but how do I execute the UI script during the unregistering of the menu-altering-add-on?