sodcalculator

10 Tech How-To

Fix Windows Can’t Delete Active System Partition

Guide 10-55495 · Updated · Step by step

If Windows 10 says it “cannot delete the active system partition on this disk” when you try to clean or repartition a drive, the fix is to use the DiskPart command-line tool to clear the partition’s active flag, or to use a third-party partitioning tool that can remove the flag. This error appears because the partition is marked as “active,” a legacy BIOS boot flag that Windows protects even when the drive isn’t the one you boot from. The steps below show you how to remove that flag safely and then delete the partition.

Why Windows Protects the Active Partition

The “active” flag is a small marker on a partition that tells a computer’s BIOS (or UEFI in legacy mode) which partition to look for a boot loader on. It’s a leftover from the old MBR (Master Boot Record) disk layout, where only one partition per disk can be active at a time. Windows 10 treats this flag as critical: if you delete the active partition, the system might not boot, so the built-in Disk Management tool refuses to let you remove it. This protection applies even if the disk is a secondary data drive, because Windows can’t always tell whether the flag is still needed for another operating system or a recovery environment.

The error usually appears when you right-click a partition in Disk Management and choose “Delete Volume,” or when you try to use the “Clean” command in DiskPart. The partition itself is often a small 100 MB or 500 MB “System Reserved” partition, or an OEM recovery partition that was accidentally left with the active flag. The good news is that removing the flag is a simple command-line operation, and once it’s gone, you can delete the partition normally.

What You Need Before You Start

Before you modify any partition, make sure you have a full backup of any data on that disk. Deleting a partition erases everything on it, and the active flag removal itself is safe, but mistakes in DiskPart can wipe the wrong drive. You’ll also need to know which disk number the partition is on, because DiskPart works with disk numbers, not drive letters. To find it, open Disk Management (right-click the Start button and select “Disk Management”) and look at the bottom half of the window. Each physical drive is labeled “Disk 0,” “Disk 1,” etc., and each partition on it has a number (like “Partition 1”).

Also, be aware that this process only works on MBR disks. If your disk uses the newer GPT (GUID Partition Table) layout, there is no “active” flag at all, so this error won’t appear. On GPT disks, Windows uses a different boot mechanism, and the error is usually caused by a different issue, such as the partition being the EFI System Partition (ESP), which Disk Management also protects. The steps below are specifically for MBR disks with the active flag set.

Step-by-Step: Remove the Active Flag with DiskPart

  1. Press Windows + X and select Command Prompt (Admin) or Windows PowerShell (Admin). If prompted by User Account Control, click “Yes.”
  2. Type diskpart and press Enter. This starts the DiskPart utility.
  3. Type list disk and press Enter. Note the disk number that contains the partition you want to delete (e.g., Disk 1).
  4. Type select disk X (replace X with the disk number) and press Enter. You should see a message saying “Disk X is now the selected disk.”
  5. Type list partition and press Enter. This shows all partitions on that disk. Find the one that’s active (it will have an asterisk * in the “Type” column).
  6. Type select partition Y (replace Y with the partition number) and press Enter.
  7. Type inactive and press Enter. DiskPart will confirm with “DiskPart successfully marked the selected partition as inactive.”
  8. Type exit and press Enter to close DiskPart.

Now go back to Disk Management, right-click the partition, and try “Delete Volume” again. It should work without the error. If you still get the error, the partition may be a system or boot partition, not just an active one. In that case, you’ll need to boot from a Windows installation USB and use the command prompt there to clean the disk, but be careful: that will erase the entire drive.

What If DiskPart Says “Inactive” Is Not Allowed?

Sometimes DiskPart will refuse to mark a partition as inactive, usually because the partition is the one that contains the Windows boot files for the currently running system. This happens if you’re trying to delete the active partition on the same disk that Windows is installed on, or if the partition is the System Reserved partition that Windows created during installation. In that case, you cannot remove the flag while Windows is running, because the system needs that flag to boot. The only safe way to delete it is to boot from a Windows installation media (USB or DVD), open the command prompt (Shift+F10 during setup), and run the same DiskPart commands from there. Once you’re booted from the installer, the hard drive’s active flag isn’t needed, so DiskPart will let you remove it.

Another option is to use a third-party partitioning tool that can force-remove the active flag without the Windows protection. Tools like GParted (a free Linux-based partition editor) or some commercial Windows partition managers can do this. However, using DiskPart from the Windows installer is the most reliable and doesn’t require any extra software. Just make sure you have a Windows 10 installation USB handy, or you can create one with the Media Creation Tool from Microsoft’s website.

Common Mistakes and Misconceptions

  • Deleting the wrong partition: Always double-check the disk and partition numbers in DiskPart. It’s easy to select Disk 0 when you meant Disk 1.
  • Thinking the active flag is the same as the boot flag: On MBR disks, the active flag is what makes a partition bootable. Some tools call it the “boot” flag. It’s the same thing.
  • Assuming GPT disks have the same problem: GPT disks don’t use active flags. If you get a similar error on a GPT disk, it’s because of the EFI System Partition, which you should not delete unless you’re sure you don’t need to boot from that disk.
  • Using “Clean” on the wrong disk: The clean command in DiskPart removes all partition information from the selected disk. It’s a quick way to wipe a drive, but it’s also permanent. Always verify the disk number before running it.
  • Not backing up first: Even though removing the active flag is safe, the subsequent deletion of the partition is destructive. Back up any data you need.

Alternative: Delete the Partition from the Windows Installer

If you’re already planning to reinstall Windows or you have a bootable USB, you can delete the active partition from the installer’s interface. Boot from the USB, choose your language, then click “Install Now.” On the next screen, click “Custom: Install Windows only (advanced).” You’ll see a list of partitions. Select the one you want to delete and click “Delete.” Windows will warn you that it might contain recovery files, but if you’re sure, confirm. This method bypasses the active flag protection entirely because the installer isn’t running from the hard drive. After deletion, you can create new partitions in the unallocated space or install Windows to a different partition.

Note that if the partition is the System Reserved partition, deleting it will remove the boot manager. If you’re reinstalling Windows, the installer will create a new one automatically. If you’re just trying to clean up a secondary drive, this method works as long as you boot from the USB and select the correct disk.

Frequently Asked Questions

Why can’t I delete the active system partition even after running “inactive”?

If DiskPart successfully marked it inactive but Disk Management still won’t delete it, the partition might also be a system or boot partition (one that contains Windows files). Check the partition type in DiskPart: if it says “System” or “Boot,” you need to boot from a Windows installation USB to delete it, because Windows protects those partitions while running.

Will removing the active flag damage my data?

No. The active flag is just a marker; it doesn’t contain any data. Removing it only changes the boot behavior of the disk. Your files remain intact. However, if the disk is the one you boot from, removing the flag will make it unbootable, so only do this on a disk you don’t need to boot from.

Can I use third-party software to delete the active partition?

Yes, many partition managers (like GParted, AOMEI Partition Assistant, or MiniTool Partition Wizard) can delete an active partition even when Windows refuses. They often have a “Force Delete” option. Just be sure to select the correct partition and back up your data first.

What is the difference between the active partition and the system partition?

The active partition is the one with the active flag, which tells the BIOS where to find the boot loader. The system partition is the partition that contains the boot loader files (like bootmgr). On a typical Windows 10 installation, the System Reserved partition is both the system partition and the active partition. The boot partition is the one with the Windows folder (C:\).

I get this error on a GPT disk. What should I do?

On GPT disks, the error “cannot delete the active system partition” is unlikely because there’s no active flag. If you see a similar error, it’s probably about the EFI System Partition (ESP). You can delete it with DiskPart using the delete partition override command, but only if you’re sure you don’t need to boot from that disk. Otherwise, leave it alone.

How do I create a Windows 10 installation USB if I don’t have one?

Use the Media Creation Tool from Microsoft’s website. Download it, run it, choose “Create installation media for another PC,” and follow the prompts to make a bootable USB drive. You’ll need a USB stick with at least 8 GB of space.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →