In some cases, formatting your PC may be the last resort to remove viruses that can not be eradicated with existing antivirus programs. After reformatting, you can reinstall the operating system and ...
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 ...