Remove Unused Menu Locations

Seems like you’re using a parent theme or a plugin that registers those menu locations. If that’s the case then you shouldn’t remove your last function. You need to keep the remove_default_menu function in your functions file.

If you are not using a parent theme or some sort of plugin than that means you are registering those menu locations yourself. If that’s the case then you should check your code and remove the lines where you register them.