When reinstalling Windows on your PC, select the installation drive, and your operating system will create a partition in it to safely store the system files. So, if the D drive isn’t the system drive, you don’t need to format it to reinstall Windows.