How to delete a path when uninstall a module?
You can use hook_uninstall and MenuLinkManager::removeDefinition


  Removes a single link definition from the menu tree storage. This is
  used for plugins not found through discovery to remove definitions.