When you boot from a USB stick to install Windows, the installer sees your computer as a collection of storage devices. It does not assume you want to destroy everything; it assumes you want a place to live.

In the installer menu, drive letters (C:, D:) often disappear. You must identify drives by Boot Records:

If one physical drive is split into "C:" and "D:" segments, formatting "C:" will not wipe "D:". ⚠️ Potential Risks to Secondary Drives

If you select "Remove everything" and further choose the setting to "delete files from all drives," Windows will successfully erase data from all connected storage devices, including extra HDDs and SSDs.

If your Drive D is a partition on the same physical hard drive as Drive C (e.g., a 1TB drive split into C: 500GB and D: 500GB), then a clean install using the "Delete partition" function will wipe both C and D because they are on the same physical disk.