To format a hard drive before you start using it in Windows, use the Disk Management utility; on a Mac, use Disk Utility.
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 ...
Mac OS X Mountain Lion gives users several ways to access the Terminal and three common options for formatting a hard drive. You can launch Terminal within Mac OS X to format hard drives currently not ...