Reinstalling Windows 11/10 won't delete files per se. All of your files and software will be retained, but the reinstallation will delete certain items such as custom fonts, system icons, network credentials et al. However, as part of the process, the setup will also create a Windows.old folder which should contain everything from your previous installation - so, you can access this folder and restore items that you might need.