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 usingDiskPart. Here, besides deleting volumes, you'll also learn more command lines of creating, extending, formatting volumes with this utility. Let's start.

删除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:

Comparison

DiskPart Clean Command

DiskPart Clean All Command
Designed to 删除all partitions at one time, quickly clean a drive data. 删除all partitions and wipe hard drive at one time, erase and reset the hard drive.
Result 删除d partitions and data are recoverable. 删除d 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-clickWindowsicon >Disk Management> Disk number.

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

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

Step 1.PressWindows + Rkeys to open the search menu, typecmd, right-clickCommand Promptand selectRun as Administrator.

Open DiskPart

Step 2.ClickYesto let Windows run Command Prompt in Admin right.

Step 3.Typediskpartand hitEnter.

Step 4.Type the following command lines one by one and hitEntereach time:

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

删除all partitions using cmd

Step 5.Typeexitto 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 pressingWindows + Rkeys, typecmd,and right-clickCommand Prompt.

ClickRun as Administrator >Typediskpartand hit Enter.

Step 2.ClickYesto allow DiskPart to run on Windows as Admin.

Step 3.Type the following command lines and hitEntereach time:

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

删除all partitions and clean hard drive using diskpart

Step 4.When the process completes, typeexitto 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 Googlepartition manager softwareonline, 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.

Free Download

Windows 11/10/8/7100% Secure

Step 1.Launch EaseUS Partition Master, and click "Partition Manager".

Make sure that you've backed up the important data before deleting any partition on your disk.

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

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

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

Step 4.Click "Execute xx Task" 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 theWindowsicon and selectDisk Management.

Step 2.目标磁盘,右键单击一个分区and select删除Volume.

Step 3.SelectYesto remove the selected volume.

删除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
Pros
  • Free
  • 删除所有卷。
  • Free
  • Easy to use.
  • Supports deleting the OS drive with a bootable disk.
Suitable users Experienced & professional users. Beginners. All levels of users.

Accordingto 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.

Free Download

Windows 11/10/8/7100% Secure

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.PressWindows + Rkeys, typecmd, right-clickCommand Prompt,and selectRun as Administrator.

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

  • diskpart
  • list disk
  • selected disk #
  • list partition
  • 选择分区#
  • delete partition

Step 3.Typeexitto close DiskPart.

删除a partition using diskpart

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

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

Step 2. Open DiskPart and type the following command lines one by one and hitEntereach time:

  • diskpart
  • list disk
  • selected disk #
  • list partition
  • 选择分区#
  • delete partition

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

Step 3.Typeexitto 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 quickorformat 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 hitEntereach 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.Typeexitto 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 pressEntereach 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 byTracy King

特蕾西加入EaseUS 2013年和已经工作的g 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