I do this, every year or so. It’s been a long time since I had to do it for virus, but I’ve done it to clear out accumulated stuff from un-used programs.
I keep keep my files on a separate volume from Windows and programs on the C:\ drive. My browsers all sync bookmarks and settings to the cloud.
So it’s pretty easy to reinstall everything and get back to where I was.
Windows 10 makes it really easy, it has a built-in refresh tool, that will save files settings. And if you use a Microsoft account as your login, it saves settings, too.