Clean command in Windows
Clean command syntax
clean [all]
command parameter clean
ParameterDescriptionall Specifies that each and every sector on the drive is set to 0, this will completely erase all data present on the drive.
Note:
- On MBR (Master Boot Record) drives, only the MBR partition information and hidden sector information are overwritten.
- On a GPT (GUID Partition Table) volume, the gpt partition information, including the Protective MBR, is overwritten. No hidden sector information.
- A drive must be selected for this to be successful. Use the select disk command to select a drive and switch to it.
Example of how to erase the drive with the clean command via Command Prompt
1. To determine the drive number assigned to a 3TB+ MBR partitioned volume, follow the steps below.
- From the Start menu , right-clicking on Computer will provide a drop-down menu. (If you are using Windows 8 or 8.1, move your mouse to the bottom left corner of the desktop and right-click. Then select Disk Management ).
- Select Manage.
- Select Disk Management (listed under Storage ).
- Find the drive identified as a 3TB (2794GB) drive. The properties window shows that the partition table on the drive is MBR.
Important : Note the drive number (such as Disk 1 ).
2. Open a Command Prompt window with admin rights.
3. From Command Prompt, type diskpart and press Enter. The diskpart command prompt will open.
4. From the diskpart command prompt, type list disk and press Enter.
5. From the diskpart command prompt, you'll need to select the drive number (for example, if the 3TB+ drive is Disk 1 , you'd type select disk 1 ) and press Enter. A message appears indicating that the drive has been selected. You'll be back at the diskpart command prompt.
6. From the diskpart command prompt, type clean and press Enter. The drive's partition, data, and signature are now deleted. You'll be back at the diskpart command prompt.
Warning : After you type clean and press Enter , the drive will be erased, no warning is provided so be careful to select the correct drive you want to erase.
7. The Command Prompt window will display the message "DiskPart succeeded in cleaning the disk" . Close the Command Prompt window by clicking the red X in the upper right corner.
8. 3TB+ drives can now be re-initialized, partitioned and formatted.
You should read it
- How to clean Windows PC using Command Prompt
- Cmd command in Windows
- Del command in Windows
- The echo command in Windows
- Reg command copy in Windows
- 7 simple steps to make your laptop as clean as new
- The certutil command in Windows
- Diskcomp command in Windows
- Driverquery command in Windows
- How to use Clean Master to clean up, speed up Windows
- Set command in Windows
- Cmstp command in Windows
Maybe you are interested
Driver Talent - Free Driver Updater
Intel releases new driver update package with 6GHz optimization and many other improvements
Run Linux from USB Flash Drive
How to recover deleted Viber messages using Google Drive, iCloud
How to remove driver, delete driver in Windows 10, 11
How to reinstall audio driver on Windows 10, 11