All this is assuming you can still boot into Windows 11/10 in a regular way. If you cannot, the only way is to use a bootable USB drive. You can then use the advanced recovery. Reset Windows Format ...
If you’re installing a new hard drive, or need to wipe your drive clean for that “fresh” feeling, you’ll end up formatting your drive. Formatting will check the drive for errors, and prepare it for ...
Formatting a hard drive along with the install of a new OS is the best option. The vast majority of operating system installations provide a "format" option as part of the installation process.