SOLVED: Easy Command Line to Wipe and Reformat a Disk

In 2017 we recorded a video on how to remove partitions through command line. This is especially useful when they are stuck or refuse to be deleted through the DISK MANAGER console because they are protected system partitions.

Today we explain how to remove partitions, including protected partitions, and reformat a previously used disk.

command line to wipe a disk create new partition and formatThe following commands work in old school CMD, newer school PowerShell or even the tomorrows school Windows Terminal:

  1. Open a command line as an administrator
  2. type diskpart and press the enter key
  3. type list disk and press the enter key
  4. type select disk X (X = the disk you want to wipe out) and press the enter key
  5. type clean and press the enter key
    1. if you need to ensure all data is truly wiped out you can use clean all, but a 1TB disk will take more than a dozen hours to complete
    2. if you need to stop a clean all command, click HERE for instructions.
  6. type create partition primary and press the enter key
  7. type format fs=ntfs quick and press the enter key
  8. type assign letter=E and press the enter key
  9. have a nice day

 

 

Leave a Reply