Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Disk - Clean and Clean All with Diskpart Command

05 Mar 2012   #120

64-bit Windows 10 Pro

Hello Sfeg, and welcome to Seven Forums.

Yes, either "clean" or "clean all" command will completely wipe everything from a disk. If you are unable to use it from within Windows 7 because of the virus, then you should be able to at boot.

Hope this helps,

My System SpecsSystem Spec
05 Mar 2012   #121

Win7 Pro x64

Thank you for the welcome, Shawn.

Is the MBR automatically part of the DiskPart wipe, or do I have to specify/alter instructions?

Does this info from Microsoft say otherwise?
A Description of the Diskpart Command-Line Utility
"Diskpart permits certain partition deletion operations that are blocked by the snap-in. For example, you can use Diskpart to delete MBR OEM partitions. However, these partitions often contain files that are important to the platform operation. Diskpart blocks the deletion of the current system, boot, or paging volumes and partitions. Also, Diskpart blocks deletion of the partitions that underlie dynamic disks."
My System SpecsSystem Spec
05 Mar 2012   #122

64-bit Windows 10 Pro

Using the "Clean" command at boot on the disk will wipe the disk completely.
My System SpecsSystem Spec
05 Mar 2012   #123

Win7 Pro x64

Can anyone help on my related Q:
If both a HD and the motherboard firmware are infected by a trojan virus, does a Bios flash with updates take care of the Mobo?

But which one to do first? It seems that upon format/reinstall, the HD could get infected immediately again by the Mobo, and vice versa for the Mobo.

I'm thinking HD wipe, then Mobo flash, then HD format/reinstall... still not completely foolproof, but does that make sense or not?
This Tom's article, especially the last comment on 2/4/12, are disheartening!
Webroot Discovers BIOS Rootkit
My System SpecsSystem Spec

05 Mar 2012   #124

64-bit Windows 10 Pro


That will need to be posted as a new thread in the System Security forum area since it's not related to this tutorial. This way you will get the best help for that issue there.
My System SpecsSystem Spec
05 Mar 2012   #125

Win7 Pro x64

I actually did post it there. Thanks. Here's a wipe/format question, though:

If I use Diskpart or another utility (such as KillDisk or DBAN), is it possible to wipe the HD first but don't format it yet? (Or do all wipes also format?)

Then I would do the format to NTFS later, after flashing Mobo.

While still unformatted, will the HD be un-writable, and thus un-infectable?
My System SpecsSystem Spec
05 Mar 2012   #126

64-bit Windows 10 Pro


Yes, when you use the "Clean" command, it will leave the Disk as blank "unallocated space" and unusable until formated.
My System SpecsSystem Spec
20 Mar 2012   #127

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10

Great stuff again I have heap of old drives I thought a format would suffice but then found I could recover stuff now this is just what I wanted.

Thanks so much

I meant to add is there a way of doing this so that I am left with just the OS intact? - handy when one hasn't got the installation disk?
My System SpecsSystem Spec
20 Mar 2012   #128

64-bit Windows 10 Pro

Hello John,

Unless the OS is on a separate physical HDD than the one you wanted to use "clean" or "clean all" on, then no. They will wipe everything on a HDD including all partitions/volumes.
My System SpecsSystem Spec
20 Mar 2012   #129

Windows 7x64 Home Premium SP1

It may have been mentioned earlier but you can run the tutorial from the command prompt of a system repair disk if you can't or don't want to boot into the OS.
My System SpecsSystem Spec

 Disk - Clean and Clean All with Diskpart Command

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search

Similar help and support threads
Windows 7 Tutorial Category
Recover data from a diskpart > clean command
This must be my one time blunder but I did manage to clean my 2TB backup external HDD in an attempt to clean a pendrive to make a bootable pendrive for installing Windows 8. Now the help file for the diskpart > clean command says only the MBR partitioning information and hidden sector...
Backup and Restore
Recover Partitions from diskpart -> clean command
Hi Guys, I was trying to install windows 7 on my windows 8 laptop (UEFI) and when it didnt allow me to install win7 on partitioned drive I followed YouTube video foolishly and fired diskpart - clean command. everything gone after that. Luckily I didnt do anything after that and referred one of...
Backup and Restore
Diskpart error: Clean is not allowed on the disk...
Hi, I am doing a clean windows 7 install *again* and I want to completely wipe off the hard disk this time, I followed this tutorial but got this error: Now...
General Discussion
Formating 3tb drive..diskpart clean or clean all
I am having to format a 3tb drive that I am installing Windows 7 on and I need to know do I need to do clean all or just clean in diskpart? What happened is I did not know about the GPT (first time dealing with a drive over 2tb) and I just went through the motions like you do with installing. Well...
Installation & Setup
Should I clean my HDD with Parted Magic or Diskpart clean all command?
Hi everyone i have a question about HDD Clean and also question about Win 7 64 bit :) I want to wiped out my all HDD data inside i want to delete all information like a brand new HDD. I heard that there is a program called Parted Magic can do this and also Diskpart clean all command too. ...
General Discussion
DISKPART & HDD help - Clean All interrupted, disk no longer found.
I have a new WD (Caviar Black) 1.5TB HDD. It was was in the middle of the Clean All process in DISKPART when it was interrupted during the process. It was not stopped via ctrl+c and a follow up run of 'Clean', but exited out of DISKPART and machine reset instead. Going back into DISKPART, the...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:26.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App