Complete Guide: Diskpart Force Delete All Partitions

How do I use Diskpart to force delete a partition? This is usually only necessary if the partition is corrupted or cannot be deleted with the standard "Delete Partition" command. Take a quick look at it.

Yuka

By Yuka Updated on April 10, 2023

Share this: instagram reddit

When Need "Diskpart Force Delete Partition"?

In general, you can use the Diskpart.exe service to delete any known data partition. However, when you try to delete a hidden partition or a system-protected partition (such as a recovery partition) using the "Delete partition" command in DiskPart, you may encounter an error message: "Cannot delete a protected partition without the force protection parameter set".

Cannot Delete A Protected Partition

In this case, the DiskPart tool asks you to enter a different parameter (force protection parameter) to indicate that your Windows knows what you are doing and then you can successfully delete the hidden or system-protected partition. To be precise, you need to enter the "delete partition override" instead of the "delete partition" command. Here's a summary of the situations where you need to force delete partition using Diskpart:

  • When you are unable to delete a partition using the Disk Management tool in Windows.
  • When you want to delete a partition that is protected by the operating system or other programs.
  • When you want to delete partitions that contain system files or other critical data.
  • When you want to delete partitions that have been corrupted, inaccessible or repaired.
  • When you want to delete partitions that are infected by viruses or malware.

How to Force Delete Partition with Diskpart?

How to use Diskpart to delete a partition force? You can refer to the following quick guide to remove hidden or system protected partitions forcefully:

Note: Be very careful when following these steps. Deleting a partition will delete all data from the target partition. It is quite important to choose the right partition number on the right disk. To be on the safe side, you can back up the disk in advance.

  1. Press the Windows + R keys at the same time to open the Run Dialogue. Then type diskpart in it and press Enter.
  2. Then type the following commands in turn and press Enter after each command to run it:
  • list disk: display a list of the disks currently connected to your computer.
  • select disk: select right the disk containing the partition that you wish to delete.
  • list partition: see all the partitions available on that the selected disk.
  • select partition: identify the one that you wish to delete from the partition list.
  • delete partition override: force delete the selected partition with using the override parameter.

DiskPart Force Delete

  1. Once the process completes successfully, type the exit command and press Enter to exit Diskpart.

Reliable Alternative to Diskpart: Force Delete Partitions Easily

If you want to forcibly delete all partitions on your hard drive, but you encounter the problem that 'Diskpart delete partition override not working'. Here is another way to help you perform this operation. You can use a reliable space eraser - AOMEI Backupper Professional to do it. It supports Windows 11/10/8.1/8/7/Vista/XP systems. You can use it to:

 Wipe an entire disk for reuse, wipe a selected partition or unallocated space to free up space, and the data will be unrecoverable after wiping.
 Wipe USB drives, hard disk drives as well as SD cards. All brands of disks are supported, including Samsung, SanDisk and WD, etc.
 Enjoy multiple secure wiping methods like DoD 52220.22-M (with 7 passes) or Gutmann (with 35 passes).

Here I will show how to wipe partition via AOMEI Backupper. Download this software in advance and launch it. The erased data is unrecoverable, you can backup files first to protect the important data you don’t want to lose.

Download Free TrialWin11/10/8.1/8/7/XP
Secure Download

Step 1. Click Tools on the left panel and select Disk Wipe.

Disk Wipe

Step 2. Choose to wipe selected partition(s) or unallocated space on the disk. Then click Next.

Wipe Selected Partitions or Unallocated Space

♨ Tip: if you choose Wipe disk, the partitions and all sectors on the disk will be deleted.

Step 3. Then you will be asked to select the partitions or unallocated space to wipe. Choose the right one to wipe partition on Windows 10.

Select Unallocated Space

Step 4. Choose the wiping method you need.  Then click Start to operate the disk wiping. Safer wiping methods come with more passes and lower wiping speed.

Wiping Method

Step 5. Then you will enter the wiping process page. You can click Cancel in the right corner if you want to stop this process. When the operation is completed, click Finish.

Finish

Note✍:
 If you want to wipe the current system disk or C drive where Windows is installed, the software will restart to  WinPE to perform the operation. You will not be able to enter the system after completion.
This feature doesn’t support wiping dynamic disks.

Conclusion

After reading this article I am sure you know how to use Diskpart to force delete partition. But for some computer novices, this method is slightly complicated. If you operate once wrong, it may cause irreversible disaster to happen. If you use AOMEI Backupper, an alternative to Diskpart, you don't need to master any technical skills and you can force delete the partition you want on your hard disk with just a few clicks.

In daily use, you can also use it to backup system for disaster and realize continuous data protection to files and folders with its Backup functions. Try it now to wipe the partition on your computer.

Yuka
Yuka · Editor
Yuka, our dedicated editor at AOMEI Technology, is committed to bringing you valuable insights and guidance in data protection. Her mission is to empower everyone with her knowledge in computer backup and recovery, disk cloning, file synchronization, and more. Yuka's goal is to do her best to make complex tech tasks simple and ensure that your digital world remains safe and secure.