noun diskpart
Disk Partition
Diskpart clean is a command used in Windows to completely wipe a storage device, removing all partitions, files, and data. It’s part of the DiskPart utility, a command-line tool for managing disks and volumes.
When you run the command, it overwrites the partition table, making the drive appear empty. Unlike quick formatting, it doesn’t just delete file references—it removes all traces of data, making recovery nearly impossible without specialized tools.
This is useful for troubleshooting, reinstalling Windows, or securely erasing sensitive data. However, it’s irreversible, so you must back up important files before using it. For example, if a laptop is running slowly due to a corrupted partition, running diskpart clean followed by a fresh Windows installation can restore performance.
After a virus infection, I used <code>diskpart clean</code> to wipe the SSD before reinstalling Windows.
In other languages
See also: partition table