I had struggled properly de-installing Revit 2023 and 2024. My solution may not work for most people though since my problem was different. But if you are in the same situation, it may help.
My situation and problem was that our IT uses a software called Applocker. This will prevent some (in their eyes unapproved) executables to run. what that causes is that the de-installation (and the installation as well) doesn't work properly since only some of the routines work. the problem is, an isntallation may look like it worked and not throw an error just because a few routines didn't work. So you may have a problem later on.
Once a person with the privileges (aka not having to use Applocker) sat at my computer and was logged in, the de-installation and re-installation just went smoothly. No registry editing etc. needed.
So if you have problems, check in Event viewer if your IT plays some tricks on you:

Obviously if this isn't your problem, you have to try other solutions. But if your organization has Applocker, you basically will have to have a privileged person do de-install and installations (inc. updates etc.). i basically have to have the Eventviewer open all the time and if a software causes a problem, try to track down if it was Applocker and then have IT approve the specific routine it blocked.