Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - You want the Geek? You can't handle the Geek!

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews



IObit Black Friday Sale

spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Macrium Reflect FREE Edition
3. Smart Defrag
4. MusicBee
5. Sergei Strelec's WinPE
6. Visual C++ Redistributable Runtimes AIO Repack
7. Microsoft Visual C++ 2015-2022 Redistributable Package
8. McAfee Removal Tool (MCPR)
9. K-Lite Mega Codec Pack
10. Visual C++ Runtime Installer (All-In-One)
More >>

top reads

Star AI Answers: Authority Without Accountability

Star Fun with CMD: 5 Windows command-line tools for music, video, and more

Star All the New Features Landing in Windows 11 This December

Star Lossless vs Lossy: When FLAC, APE, and ALAC Beat MP3 and When They Don't

Star Google Search Tricks You'll Actually Use in 2025 and Beyond

Star Fresh PC Checklist: First 12 Things to Do On a New Windows 11 Machine

Star Running AI Models Locally: What They Are, Where to Find Them, and How to Get Started

Star Deciding Between Idle State, Sleep Mode, and Shutdown: What's Best for Your PC?

Star How to Fix VMware Workstation "The Update Server Could Not Be Resolved" Error Installing VMware Tools

Star How to Remove Google Gemini from Your Phone (and Your Life)


MajorGeeks.Com » Overview» Tutorials and Video Guides » How to Erase a Disk Using Diskpart Clean Command in Windows

How to Erase a Disk Using Diskpart Clean Command in Windows

By Timothy Tibbetts

on 06/29/2023

⚡ Black Friday Blowout! IObit Pro Up to 90% Saving PLUS $5 off! ⚡
Once-a-year pricing on speed, privacy, and protection. Don’t miss the best deal IObit drops all year!

One of the lesser-known Diskpart commands is clean or clean all, allowing you to wipe a partition or drive, leaving it unallocated and not initialized.

Before we begin, it's essential to know the difference between clean or clean all as well as understanding your drive letters. The drive will be erased, and you risk losing data, or your operating system if you select the wrong drive letter. Finally, Diskpart will only work on Windows 10, 8, and 7.

MajorGeeks has numerous freeware and shareware partition management apps if you prefer a graphical user interface (GUI).

Clean removes all partition or volume formatting from the disk you selected. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten. On GUID partition table (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten.

Clean all does everything that clean does, but all data is zeroed (securely erased) so that it's not recoverable. Expect it to take one hour per 320GB.




Open PowerShell or the Command Prompt.

Type the following three lines, pressing Enter after each, to activate Diskpart and select a disk:

  • diskpart
  • list disk
  • Select disk # *Replace # with the disk numer)



    Type in clean or clean all. If unsure, return the the top of this tutorial to understand the differences.

    You can now initialize, convert, or make the partition active.

    Similar:
  • GPT (GUID Partition Table) or MBR (Master Boot Record) When Partitioning a Drive?
  • Do I Need to Format My Hard Drive When Doing a Fresh Install of Windows?
  • Safely Convert Your Master Boot Record (MBR) to GUID Partition Table (GPT) with MBR2GPT.EXE
  • How to Securely Delete Files in Windows 10 With PowerShell and Cipher
  • How to Add 'Secure Delete' to the Windows 10, 8 and 7 Context Menu

    comments powered by Disqus




  • © 2000-2025 MajorGeeks.com
    Powered by Contentteller® Business Edition