Forum Discussion
How to wipe a hard drive on Windows 10 using command prompt
- Oct 22, 2025
The files can be recovered from your hard drive if you just did a simple formatting. For data safety, You have to erase the drive a couple of times with random digits. This is the most secure way to completely wipe a hard drive. And there is no chance to recover the deleted files after erasing.
Pls follow this guide: https://www.weboftips.com/safe-way-to-erase-hard-drive-on-windows
Wiping a hard drive on Windows 10 using Command Prompt can be done with the built-in diskpart tool. This method completely erases all data on the selected drive, so make sure you’ve backed up important data first. Here's how to wipe a hard drive on Windows 10.
1. Press Windows + X and select Command Prompt (Admin) or Windows PowerShell (Admin).
2. Start diskpart app and list all drives.
diskpart list diskIdentify the number of the drive you want to wipe (e.g., Disk 1).
3. Select the target disk and clean the disk with basic wip.
select disk X cleanReplace X with the disk number of the drive to be wiped. This will wipe a hard drive on Windows 10 PC.
If you want a more secure wipe (zero out data), use:
clean allThis performs a full zero-fill pass on the entire disk (can take hours depending on size).
Warning: This process is irreversible. Do not select your system drive (usually C:) while Windows is running.