How do I delete every file on my hard drive?

SirSprinklez

Honorable
Oct 23, 2013
106
0
10,680
Im trying to wipe a hard drive that is giving me trouble, I just want to start fresh and hope to god it isn't failing on me. It causes freezes quite frequently. I just want to completely wipe it, including the OS, EVERYTHING. I have a version of windows 7 on my SSD so that should be fine for now.
 
From Command Prompt, run these commands:

diskpart
list disk
select %WIPEDRIVE% (where %WIPEDRIVE% is, replace with drive letter to drive to be wiped)
clean all

WARNING: This process destroys all data and will take several hours to complete.