EaseUS Partition Master

A simple partition tool to manage disk space in Windows 11/10.

  • MBR to GPT Converter, make Disk Ready for Windows 11.
  • Migrate Windows 11 to New SSD in 1-Click.
  • C Drive Cleaner & Windows 11 Performance Optimizer.
  • Rescue Data When Windows 11 Corrupts or Dies.
1 Year Lifetime$55.96$69.95

Happy autumn sale once for all

How Do I Use DiskPart to Delete All Partitions in Windows? Your 2021 Guide Is Here

Updated by Tracy King on Aug 13, 2021

Can I delete all partitions on SSD at one time in Windows 10? Is there a free tool that can completely remove all partitions and wipe a drive at one time? Yes, Windows built-in disk utility tool - DiskPart can fulfill the task.

Here this guide will assist you in cleaning up a drive for free using DiskPart. Here, besides deleting volumes, you'll also learn more command lines of creating, extending, formatting volumes with this utility. Let's start.

Delete All Partitions Using DiskPart - How-to Guide 

There are two commands in DiskPart that can be used to delete all partitions on a Windows computer. And each command is designed for different purposes that are listed here:


DiskPart Clean Command

DiskPart Clean All Command
Designed to Delete all partitions at one time, quickly clean a drive data. Delete all partitions and wipe hard drive at one time, erase and reset the hard drive. 
Result Deleted partitions and data are recoverable. Deleted partitions and data are permanently erased, unrecoverable.

So how to use these two command lines? Let's start. 

Before you start, remember to open disk management and confirm the number of your target disk on which you want to remove all partitions:

Right-click Windows icon > Disk Management > Disk number.

Diskpart clean and clean all command will delete all partitions, removing all saved data from your disk. Before you start, make sure that you back up all essential data in advance.

#1. Delete All Partitions Using DiskPart Clean Command - Clean Disk 

Step 1. Press Windows + R keys to open the search menu, type cmd, right-click Command Prompt and select Run as Administrator. 

Open DiskPart

Step 2. Click Yes to let Windows run Command Prompt in Admin right.

Step 3. Type diskpart and hit Enter.

Step 4. Type the following command lines one by one and hit Enter each time:

  • list disk
  • select disk # (Replace # with the number of your target disk.)
  • clean

Delete all partitions using cmd

Step 5. Type exit to close the DiskPart command window when the cleaning process completes.

Now, you may see that your disk is showing unallocated in the disk management. 

#2. Delete All Partitions Using Diskpart Clean All Command

Also works to: wipe a hard drive, reset the hard drive.

Step 1. Open DiskPart by pressing Windows + R keys, type cmd, and right-click Command Prompt.

Click Run as Administrator > Type diskpart and hit Enter.

Step 2. Click Yes to allow DiskPart to run on Windows as Admin.

Step 3. Type the following command lines and hit Enter each time:

  • list disk
  • select disk 1 (Replace 1 with the disk number that you want to wipe.)
  • clean all

Delete all partitions and clean hard drive using diskpart

Step 4. When the process completes, type exit to close the DiskPart window.

Now your drive is reset as a new disk. All your data are gone. 

Two DiskPart Alternatives to Delete All Partitions on a Hard Drive

According to some Windows beginners, it's a bit complex for them to use DiskPart command lines in managing hard drives. Here, we included two DiskPart alternative tools that are even easier and more efficient in deleting all partitions on your disks. 

#1. Using Third-party Partition Manager Software

When you Google partition manager software online, at least hundreds of disk managing software and utilities are showing up in the searching result. To most Windows users, executing an operation deleting all partitions on a drive in only a few clicks will be perfect.

EaseUS partition manager software - Partition Master with its Delete All feature can help.

1 Year Lifetime$55.96$69.95

Happy autumn sale once for all

Step 1. Launch EaseUS Partition Master on your computer.

Step 2. Select to delete partition or delete all partitions on hard drive.

  • Delete single partition: right-click on a partition that you want to delete and choose "Delete...".
  • Delete all partitions: right-click a hard drive that you want to delete all partitions, and select "Delete All...".

Make sure that you've backed up the important data on the selected partition because this manner will compeletely remove data.

Step 3. Click "OK" to confirm the deletion.

Step 4. Click "Execute xx Operation" on the top menu and then click "Apply" to save the change.

0:00 - 0:39 Delete single volumes; 0:39 - 1:09 Delete all partitions.

#2. Using Disk Management

The other tool that Windows beginners think is easy to use in deleting partitions in Disk Management. It's free to delete all partitions. The only shortcoming of this tool is that you cannot delete all partitions are one time.

The operating process needs to be repeated several times. Here is how to delete all partitions on your drive:

Step 1. Right-click the Windows icon and select Disk Management.

Step 2. On the target disk, right-click a partition and select Delete Volume.

Step 3. Select Yes to remove the selected volume. 

Delete all partitions using Disk Management

Step 4. Repeat the process to delete all partitions on the target disk.

What Is the Fastest Way to Remove All Partitions from a Drive

DiskPart is a command interpreter that helps Windows users to manage computer disk drives. It works equally as third-party partition manager software and disk management in managing hard drives in these aspects: 

But which is the fastest way to remove all partitions on a disk? Here we tested these three methods on a 2TB hard drive with 4 volumes, and here is the result that you may be interested in:

Comparison DiskPart: Clean Command Disk Management: Delete Volume EaseUS Partition Master: Delete All
Steps to Delete All Partitions At least 5 steps. More than 5 steps. 3 steps.
Duration 45s 40s 35s
  • Free
  • Delete all volumes at one time.
  • Free
  • Easy to use.
  • Supports deleting the OS drive with a bootable disk.
Suitable users Experienced & professional users. Beginners. All levels of users.

According to the table, it'd clear that all three tools work to delete volumes on a computer, and EaseUS Partition Master with its Delete All feature is the easiest solution to clean a disk. Also, if you intend to clean an OS drive, EaseUS Partition Master is the best option.

1 Year Lifetime$55.96$69.95

Happy autumn sale once for all

DiskPart Delete Command FAQs

We offered a complete guide to help you delete all partitions using DiskPart command lines on Windows hard drives, SSD, and even external storage disks. If you have more questions, go and check the answers here below.

1. Can I Stop DiskPart Clean All?

No, you can't stop or pause the DiskPart clean all command once you hit the Enter key.

Even if you closed the DiskPart command windows, the operating system will continue executing the command in the background. All your partitions will be removed.

Therefore, we suggest that you execute the operation with cautiousness as it will permanently remove all your partitions and data, making them unrecoverable in an unstoppable procedure.

2. How Do I Delete a Partition Using Diskpart?

To DiskPart delete a volume, be sure that you have backed up useful files to an external disk before executing the following operations:

Step 1. Press Windows + R keys, type cmd, right-click Command Prompt, and select Run as Administrator.

Step 2. Type the following command lines one by one and hit Enter each time:

  • diskpart
  • list disk
  • selected disk #
  • list partition
  • select partition #
  • delete partition

Step 3. Type exit to close DiskPart.

Delete a partition using diskpart

3. How to Delete All Primary Partitions on Windows 10 from Diskpart

Step 1. Right-click Windows icon > Select disk management > Check all primary partition numbers on your target disk.

Step 2. Open DiskPart and type the following command lines one by one and hit Enter each time:

  • diskpart
  • list disk
  • selected disk #
  • list partition
  • select partition #
  • delete partition

Repeat to select and delete all primary partitions on your PC. 

Step 3. Type exit to close DiskPart.

4. Hot Diskpart Commands

As mentioned, DiskPart is a hot disk utility that experienced Windows users would use to manage partitions. Here are some hot DiskPart commands that you can apply to set or make changes to your hard drives:

Use DiskPart to Format Device:

  • list disk
  • select disk #
  • list volume
  • select volume #
  • format fs=ntfs quick or format fs=fat32 quick

Use DiskPart to Create Partition:

  • list disk
  • select disk #
  • create partition primary
  • format fs=ntfs
  • assign

Use DiskPart to Extend Partition:

  • list disk
  • select disk # (Replace # with the disk number of your target disk.)
  • list volume
  • select volume # (Replace # with the partition number of your target drive.)
  • extend size =number (Normally, the default size unit is MB.)
  • exit

5. How Do I Delete All Partitions and Format My Hard Drive

Step 1. Open DiskPart.

Step 2. Type the following command lines and hit Enter each time:

  • list disk
  • select disk #
  • clean
  • create partition primary
  • format fs=ntfs
  • assign

Step 3. Repeat the process to complete creating more partitions on a hard drive.

Step 4. Type exit to close DiskPart. 

6. Use sfdisk to Delete All Partitions in Linux

Step 1. Open terminal on Linux computer.

Step 2. Type the following command lines one by one and press Enter each time:

  • sudo su
  • fdisk-l
  • fdisk /dev /sdx (replace x with your target drive letter.)
  • d
  • 1 (replace 1 with the partition number.)
  • d

Step 3. Repeat the process to delete more partitions in Linux. 

Was This Page Helpful?

Updated by Tracy King

Tracy joined in EaseUS in 2013 and has been working with EaseUS content team for over 7 years. Being enthusiastic in computing and technology, she writes tech how-to articles and share technical solutions about Windows & Mac data recovery, file/system backup and recovery, partition management and iOS/Android data recovery.

Read full bio

Product Reviews

TrustScore 4.7 | 49 reviews
  • I love that the changes you make with EaseUS Partition Master Free aren't immediately applied to the disks. It makes it way easier to play out what will happen after you've made all the changes. I also think the overall look and feel of EaseUS Partition Master Free makes whatever you're doing with your computer's partitions easy.

    Read More
  • Partition Master Free can Resize, Move, Merge, Migrate, and Copy disks or partitions; convert to local, change label, defragment, check and explore partition; and much more. A premium upgrade adds free tech support and the ability to resize dynamic volumes.

    Read More
  • It won't hot image your drives or align them, but since it's coupled with a partition manager, it allows you do perform many tasks at once, instead of just cloning drives. You can move partitions around, resize them, defragment, and more, along with the other tools you'd expect from a cloning tool.

    Read More

About EaseUS Partition Master

All-round disk & partition management software for personal and commercial use. Let it manage your storage drive: resize, format, delete, clone, convert, etc.

Product Reviews


Video Tutorial

Video poster

How to Partititon a Hard Drive on Windows 10/8/7

Was This Page Helpful

How Can We Help You

Find answers to common questions below.