How to Delete a Partition on Windows, Mac, and Linux
Deleting a partition sounds straightforward — and often it is. But the right method, the right tool, and the right precautions depend heavily on your operating system, what's currently on that partition, and what you plan to do with the disk space afterward. Get it wrong and you can lose data, break a boot sequence, or end up with unallocated space you can't use. Get it right and you reclaim clean, usable storage in minutes.
What Is a Partition (and Why Delete One)?
A partition is a logically separated section of a physical storage drive. Your drive might have one partition or several — for example, a Windows system partition, a recovery partition, and a data partition can all coexist on the same physical SSD.
Common reasons to delete a partition include:
- Reclaiming space after removing a dual-boot operating system
- Merging multiple partitions into one larger volume
- Wiping a secondary drive before selling or repurposing it
- Removing outdated recovery or OEM partitions
The key distinction to understand before you start: deleting a partition permanently destroys all data on it. There is no Recycle Bin for partitions. Back up anything you need before proceeding.
How to Delete a Partition on Windows 💻
Windows offers two main paths: a graphical interface and a command-line tool.
Using Disk Management (GUI)
- Press Windows + X and select Disk Management
- Locate the partition you want to remove in the disk map at the bottom
- Right-click the partition volume and select Delete Volume
- Confirm the warning — the space will become Unallocated
- To merge that space with an adjacent partition, right-click the neighboring volume and select Extend Volume
Important limitation: Windows Disk Management cannot delete certain protected partitions — specifically the EFI System Partition (ESP), the Microsoft Reserved Partition (MSR), or active recovery partitions. These require DiskPart.
Using DiskPart (Command Line)
DiskPart gives you more control and can remove partitions Disk Management won't touch:
diskpart list disk select disk [number] list partition select partition [number] delete partition override The override flag forces deletion of protected partitions. Use this carefully — removing the wrong partition can make Windows unbootable.
Protected Partitions: A Real Risk
If you're trying to delete an OEM recovery partition or a hidden system partition, understand that some are locked by Windows intentionally. Deleting them may remove your ability to factory-reset the machine later. This is a trade-off worth understanding before acting.
How to Delete a Partition on macOS
macOS handles partition management through Disk Utility, found in Applications → Utilities.
- Open Disk Utility
- Select the parent disk (not just the partition) from the left sidebar
- Click the Partition tab in the top toolbar
- Select the partition you want to remove in the pie chart
- Click the minus (–) button
- Click Apply
macOS will automatically offer to merge the freed space back into an adjacent partition in many cases. However, behavior varies depending on whether your disk uses APFS or HFS+ formatting, and whether the partition is on an Apple Silicon or Intel-based Mac.
On Apple Silicon Macs, the disk structure is more complex. Volumes within an APFS container can be deleted easily, but the container itself and certain system volumes are protected by the OS.
For more advanced scenarios — such as removing Boot Camp partitions — macOS provides a dedicated Boot Camp Assistant that handles the partition deletion and disk resizing in a controlled sequence.
How to Delete a Partition on Linux
Linux users typically work with GParted (a graphical partition editor) or command-line tools like fdisk, parted, or gdisk.
Using GParted
- Open GParted (install via your package manager if needed)
- Select the correct disk from the top-right dropdown
- Right-click the target partition and select Delete
- Click Apply All Operations — changes aren't written until this step
Using fdisk (Command Line)
sudo fdisk /dev/sdX Inside fdisk, use d to delete a partition, p to print the current table, and w to write changes. Exiting without writing discards all changes — useful if you make a mistake.
Partition table format matters: If your disk uses GPT (GUID Partition Table), use gdisk or parted instead of the older fdisk, which was designed for MBR (Master Boot Record) layouts.
Key Variables That Change the Outcome
| Variable | Why It Matters |
|---|---|
| OS type and version | Tools available and protected partitions differ significantly |
| Partition table format (MBR vs GPT) | Determines which tools work and partition limits |
| Filesystem type (NTFS, APFS, ext4) | Affects merge compatibility and resize behavior |
| Whether the partition is active/bootable | Deleting it can break the boot process |
| Drive type (internal vs external, HDD vs SSD) | External drives are lower-risk; internal system drives require more caution |
| Technical comfort level | GUI tools are safer for most users; CLI tools offer more control but less forgiveness |
The Steps That Catch People Off Guard
A few patterns trip up even experienced users:
- Unallocated space that can't be merged — This happens when the unallocated space is not adjacent to the partition you want to extend, or when the filesystem doesn't support online resizing.
- Partitions that reappear — Some OEM systems recreate recovery partitions on reboot via firmware instructions.
- Dual-boot breakage — Deleting a Linux partition without updating the bootloader (GRUB) leaves Windows users staring at a GRUB error screen on next boot. 🔧
- GPT protective MBR confusion — Some older tools misread GPT disks as "unreadable," leading users to accidentally wipe the partition table entirely.
What Happens to the Space After Deletion
After deletion, space becomes unallocated — raw and unusable until you either create a new partition in that space or extend an existing adjacent partition into it. On Windows, this is done through Disk Management's Extend Volume. On macOS with APFS, space is often reclaimed automatically within the APFS container. On Linux, GParted or parted handles the resize.
Whether you can extend the partition you actually want to grow depends entirely on where the unallocated space sits on the disk relative to that partition — and that layout is specific to your drive's current configuration.