Diskpart Windows 10 Install ((top)) ⚡

The clean command does confirm with the user. It immediately overwrites the partition table. Recovery requires third-party tools (TestDisk, DMDE) before any new data is written.

If you get an error about the partition style being incorrect for your BIOS/UEFI mode, you must convert the disk after the Microsoft Learn Using DISKPART & DISM to Clean Install. - Windows 10 Forums diskpart windows 10 install

: Some recovery or OEM partitions cannot be deleted via the standard installer UI; clean removes them instantly. The clean command does confirm with the user

This is the most critical command. It removes all partitions, volumes, and formatting, leaving the disk completely uninitialized. If you get an error about the partition

The GUI cannot create MSR or separate EFI partitions manually; it always merges them into a single system partition, which can conflict with multi-boot setups.