How to Delete a Partition on Windows, Mac, and Linux

Deleting a partition is one of those tasks that sounds intimidating but is actually straightforward — once you understand what you're working with. Whether you're reclaiming space from an old dual-boot setup, wiping a secondary drive, or reorganizing storage before a fresh install, the process follows a clear path. The key is knowing which tool to use and what the consequences actually are.

What Is a Partition, and Why Does Deleting One Matter?

A partition is a logically defined section of a physical storage drive. One physical SSD or HDD can hold multiple partitions, each appearing to the operating system as a separate volume. Your C: drive on Windows, for example, is typically a partition — not the entire physical disk.

When you delete a partition, you're not just erasing files. You're removing the partition structure itself, which means:

  • All data on that partition is lost (unless backed up elsewhere)
  • The space becomes unallocated — raw space that isn't yet part of any usable volume
  • That unallocated space can then be merged into another partition or formatted as a new one

This is different from simply formatting a partition, which wipes the data but keeps the partition structure intact.

How to Delete a Partition on Windows 🖥️

Windows offers two main tools: Disk Management (GUI) and DiskPart (command line).

Using Disk Management

  1. Press Windows + X and select Disk Management
  2. Right-click the partition you want to remove
  3. Select Delete Volume
  4. Confirm the warning — this erases all data on that partition

The space will show as Unallocated. You can then right-click an adjacent partition and choose Extend Volume to absorb that space, or create a new partition from scratch.

Using DiskPart (Advanced)

DiskPart gives you more control and is often needed for system-reserved or recovery partitions that Disk Management won't let you touch.

diskpart list disk select disk [number] list partition select partition [number] delete partition 

For protected partitions (like OEM recovery partitions), you may need:

delete partition override 

⚠️ Use DiskPart carefully. There's no undo. Selecting the wrong disk or partition number can cause serious data loss.

How to Delete a Partition on macOS

Mac uses Disk Utility, found in Applications → Utilities.

  1. Open Disk Utility
  2. In the sidebar, select the parent disk (not the partition itself)
  3. Click the Partition tab
  4. Select the partition you want to remove in the pie chart
  5. Click the minus (–) button
  6. Click Apply

The freed space can be merged into an adjacent APFS or HFS+ volume depending on your macOS version. On Apple Silicon Macs, some partition operations behave differently — particularly around the System volume and internal containers — because of how APFS handles space sharing.

How to Delete a Partition on Linux

Linux users typically work with GParted (graphical) or command-line tools like fdisk or parted.

Using GParted

  1. Open GParted and select the correct drive from the dropdown
  2. Right-click the target partition
  3. Select Delete
  4. Click Apply All Operations to commit changes

Using fdisk (Command Line)

sudo fdisk /dev/sdX 

Inside fdisk:

  • p — print partition table
  • d — delete a partition (you'll be prompted for the number)
  • w — write changes and exit

Changes don't take effect until you write them with w.

Key Variables That Affect How This Works

Deleting a partition isn't universally identical across every situation. Several factors shape what's possible and what's safe:

VariableWhy It Matters
Partition typeMBR vs GPT disks have different rules and limits
OS versionmacOS Ventura+ handles APFS containers differently than older versions
Drive typeNVMe drives may require manufacturer tools for certain partition tasks
Active partitionsYou cannot delete the partition your OS is currently running from
Recovery/OEM partitionsOften hidden or protected; standard tools may refuse to delete them
Adjacent partition formatMerging unallocated space requires compatible partition types

What Happens to the Unallocated Space After Deletion

Once a partition is deleted, that space doesn't automatically flow into your existing volumes. It sits as unallocated. What you can do with it depends on:

  • Whether it's adjacent to the partition you want to extend
  • Whether both partitions share the same format type (NTFS, APFS, ext4, etc.)
  • Whether your OS tool supports non-destructive resizing for that format

On Windows, extending a volume into unallocated space only works if the unallocated space is directly to the right of the target partition in Disk Management. If it isn't, third-party tools like MiniTool Partition Wizard or AOMEI Partition Assistant handle more flexible arrangements. 🔧

Situations Where Standard Tools Won't Work

Some partitions resist deletion through normal means:

  • EFI System Partitions (ESP) — required for UEFI boot; deleting them can prevent the system from booting
  • Windows Recovery Partitions — protected by default; require DiskPart with override
  • Locked APFS volumes on macOS — may need Terminal commands or Internet Recovery
  • Partitions on an active system drive — you generally need to boot from external media to modify them safely

The right approach here varies significantly depending on what the partition contains, whether the drive is internal or external, and what you're trying to achieve afterward. Someone reclaiming space on a secondary data drive has a very different situation from someone trying to clean up a boot drive before reinstalling an OS.