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

16 Mar 2015   #260

64-bit Windows 10 Pro

I would say than running the "Clean" command will completely wipe the drive to be "unallocated".

You could then just format the "unallocated" disk like any other drive.

Partition or Volume - Create New

My System SpecsSystem Spec
17 Mar 2015   #261


I had downloaded a while back one of those software hack things and didn't like it showing up in my scans. i.e. PUP flag. So I deleted all of those files. But running a scan on an external hard drive, those PUP files had been sitting in the recycle bin or whatever $Recycle on the hard drive.

So I wanted to do a wipe on the drive to clean all of the data off and reload my data. I ended up just doing a "Clean", then I set it to MBR, then I did the LONG format. Well that thing took an entire day to do the LONG format as it is a 750GB drive. So I think I'll skip the DOD 3 pass wipe as that will be like 3 days.

I got real low GB hard drives to keep as spares to use to download files that may be questionable. That way doing a DOD 3 pass wipe to clean it up and reinstall the cloned image wouldn't take too long.

But hopefully doing a "Clean", resetting it to MBR, and doing a long format will erase any and all viruses or malware that may be hanging around somewhere on the drive.
My System SpecsSystem Spec
17 Mar 2015   #262

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

Jason not to take anything away from what Brink has told you already - there is an alternative you can use for wiping the drive - well two really.
The one I use is the Partition Wizard wipe function MiniTool Free Partition Manager for Window 8/7/vista/xp | Partition Wizard Free Edition see my pic on how it runs. It does take some time but in my experience not quite as long as the DISKPART way.
The other is CCleaner's wipe but I have never tried it so cannot comment < use the free version and it is under "Tools" and CC is also good for uninstalling stuff

Attached Thumbnails
Disk - Clean and Clean All with Diskpart Command-mini-tool-wipe.png   Disk - Clean and Clean All with Diskpart Command-ccwipe.png  
My System SpecsSystem Spec
17 Mar 2015   #263


I've got Acronis True Image I've used to wipe drives. They have different options. Like the DOD 3 pass wipe. And also a single pass that I think writes all zeros. Only thing is I'm thinking that doesn't touch the MBR section. So I guess do the "clean" first before doing a wipe.

If doing a single "wipe" is that the same thing as just doing a "long" format?
My System SpecsSystem Spec

17 Mar 2015   #264

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

Yes I suppose it doesn't matter what you use as long as it gets the job done. Those I mentioned are free and good and generally I stick to the DISKPART one.
My System SpecsSystem Spec
21 Apr 2015   #265

windows 7 64 professionals

hi! You have a great tutorial! I would like to know what is the difference between the command "clean", "clean all" from the "quick format" and "format". And is it possible to run these commands (clean, clean all, format) without using diskpart and using the GUI. The command "delete volume in disk management is that the same? Sorry for my English (I hardly know him)
My System SpecsSystem Spec
21 Apr 2015   #266

64-bit Windows 10 Pro

Hello Bobson, and welcome to Seven Forums.

Basically, "Clean" is like doing a quick format without a secure erase, and "Clean all" is like doing a full format with a secure erase. If you are keeping the hard drive, then "Clean" will be fine and quicker to use.

You can only run "Clean" or "Clean all" in a command prompt with diskpart. There's not a GUI for it.
My System SpecsSystem Spec
23 Jul 2015   #267

Windows 7 Home Premium 64bit

Hi guys.

I need to perform clean all on my only HDD so i can clean install Win7 before i sell my PC. I understand and have tried running a command prompt at boot in safe mode but two things happened. One, i still had to enter my windows password to log on before i got to the command prompt. Second, despite the procedure i got the message;

Virtual Disk Service error:
Clean is not allowed on the disk containing the current boot,
system, pagefile, crashdump or hibernation volume.

Any ideas?

Many thanks.
My System SpecsSystem Spec
23 Jul 2015   #268

64-bit Windows 10 Pro

Hello MetaBicks, and welcome to Seven Forums.

You can boot from your retail installation media or system repair disc to delete/format and then perform a clean all on the drive at boot.
My System SpecsSystem Spec
23 Jul 2015   #269

Windows 7 Home Premium 64bit

Thanks for the welcome Brink and thanks for the tips.

Il see if it works.
My System SpecsSystem Spec

 Disk - Clean and Clean All with Diskpart Command

Thread Tools

Similar help and support threads
Thread Forum
Data Recovery after using diskpart clean command
Hello! I wanted to install a fresh windows and here's what happened in details: 1. I couldn't install windows 7 on C Drive because it was a GPT partition (the error message stated that). 2. I followd a tutorial and i used diskpart but i selected partition 1 and then issued the clean command. I...
Backup and Restore
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
Windows DISKPART Clean command used on Wrong Disk
Hi all... Yesterday, I was going about my drive management on my windows server machine, and I was cleaning two disks that I had just bought. I did not unplug the drives that I was not trying to clean from the PC, so something went horribly wrong. I accidentally cleaned one of the three of the...
Hardware & Devices
Used diskpart-clean command on sd card? Help
Hello all! Im in desperate need of some help!! Long story short, my micro SD card was in an adapter on my PC, working fine, and suddenly i got an error message, saying it needed to be reformatted. I STUPIDLY trusted a youtube video that brought me to command prompt-diskpart. From there i ended...
Music, Pictures & Video
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

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 16:57.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App