The basic steps to delete a partition

Deleting a partition means removing a section of your hard drive or external storage that Windows, Mac, or Linux recognizes as a separate unit. The partition itself disappears, but what happens to the data inside depends on whether you want to keep it. On Windows, you use Disk Management. On Mac, you use Disk Utility. On Linux, you use a tool like GParted or the command line. The steps are different for each system, but the principle is the same: you select the partition, confirm you want to delete it, and the system removes it from your drive's table of contents.

Before you delete anything, back up the files you want to keep. Once a partition is deleted, the data inside it is harder to recover — not impossible, but harder. If you are deleting a partition to reclaim space for another partition, you do not need to back up first, because you are about to use that space anyway. If you are deleting a partition because you no longer need it but want to keep the files, copy them to another drive first.

Key Takeaways

  • Deleting a partition removes it from your drive's table of contents, but the actual data can sometimes be recovered with special software if you change your mind soon after.
  • On Windows, open Disk Management, right-click the partition, and select Delete Volume; on Mac, open Disk Utility, select the partition, and click the minus button.
  • Deleting a partition does not affect other partitions on the same drive or files on other drives, as long as you select only the partition you intend to remove.
  • After you delete a partition, the space it occupied becomes unallocated and can be added to another partition or left empty until you need it.

How to delete a partition on Windows

Open Disk Management by right-clicking the Start button, selecting Disk Management, or typing "diskmgmt.msc" into the search box. You will see a list of all your drives and partitions. Find the partition you want to delete — it will show a drive letter (like D: or E:) and a size. Right-click on it and select Delete Volume. Windows will ask you to confirm. Click Yes.

The partition disappears from the list, and the space becomes unallocated. You can now use that space to expand another partition on the same drive, or you can leave it alone. If you want to expand an adjacent partition into the unallocated space, right-click the partition next to it, select Extend Volume, and follow the wizard. Do not delete the System Reserved partition or the partition that holds Windows itself — deleting those will prevent your computer from starting.

How to delete a partition on Mac

Open Disk Utility, which is in Applications > Utilities. You will see a list of all your drives on the left side. Click the drive that contains the partition you want to delete, then click the partition itself in the list below. Click the minus button (−) at the top of the window. Disk Utility will ask you to confirm. Click Erase.

The partition is deleted, and the space becomes part of the drive's unallocated space. If you want to create a new partition in that space later, you can do so by selecting the drive and clicking the plus button (+). On Mac, you cannot easily expand one partition into unallocated space the way you can on Windows — you usually have to delete and recreate partitions to change their sizes.

How to delete a partition on Linux

The method depends on which Linux distribution you use. The simplest graphical tool is GParted. Open it, select your drive from the dropdown at the top right, find the partition you want to delete, right-click it, and select Delete. Click the green checkmark to explore the changes. GParted will warn you that this action cannot be undone — read the warning carefully to make sure you are deleting the right partition.

If you prefer the command line, use fdisk or parted. Type sudo fdisk -l to list all partitions and identify the one you want to delete. Then type sudo fdisk /dev/sdX (where sdX is your drive), type d to delete, enter the partition number, and type w to write the changes. Do not delete partitions you do not recognize — deleting the wrong partition can make your system unbootable.

What happens to your data when you delete a partition

When you delete a partition, the operating system removes the partition from the drive's partition table — the map that tells your computer where each partition starts and ends. The actual data files are still physically on the disk, but your operating system no longer knows they are there. This is why deleted files can sometimes be recovered with data recovery software, at least for a while.

The longer you wait and the more you use the drive after deleting the partition, the more likely it is that new data will overwrite the old data, making recovery impossible. If you deleted a partition by mistake and want to recover the files, stop using the drive when ready and use recovery software like Recuva (Windows), Data Rescue (Mac), or TestDisk (Linux and Mac). These tools scan the drive for traces of deleted files and can sometimes restore them.

Deleting a partition versus formatting a partition

Deleting a partition and formatting a partition are different operations. When you format a partition, you erase the files inside it but keep the partition itself. The partition still exists on your drive, still has a drive letter or mount point, and still takes up the same amount of space. When you delete a partition, you remove it entirely — the space it occupied becomes unallocated and is no longer a separate unit.

If you want to erase the files on a partition but keep the partition itself so you can use it again, format it instead of deleting it. If you want to reclaim the space and use it for something else, delete the partition. Formatting is faster and safer if you are not sure, because you can always recreate the partition later if you change your mind.

Why you might delete a partition

You might delete a partition to reclaim space on a drive that is running low on storage. If you have a 500 GB drive split into a 300 GB partition and a 200 GB partition, and you no longer use the 200 GB partition, deleting it gives you 200 GB of unallocated space that you can add to the 300 GB partition or use for a new partition.

You might also delete a partition if you are preparing a drive to sell or give away. Deleting the partition removes it from the partition table, but the data is still recoverable with the right tools. If you want to make sure the data is truly gone, use a tool like DBAN (Darik's Boot Nuke) on Windows or find Erase on Mac to overwrite the entire drive with random data. This takes much longer but makes recovery nearly impossible.

Frequently Asked Questions

Can I recover files after I delete a partition?

Sometimes, if you act quickly. The files are still on the disk until new data overwrites them. Use recovery software like Recuva, Data Rescue, or TestDisk within hours or days of deletion. The sooner you try, the better your chances. Do not use the drive for anything else while you are attempting recovery.

Will deleting a partition affect my other drives or partitions?

No. Deleting a partition on one drive does not touch any other drive or any other partition on the same drive. As long as you select only the partition you intend to delete, everything else stays intact. Double-check the partition name and size before you confirm the deletion.

What is the difference between deleting a partition and deleting a drive?

Deleting a partition removes one section of a drive. Deleting a drive (or wiping it) removes all partitions and all data on the entire drive. You cannot delete a drive from Disk Management or Disk Utility the way you delete a partition — you would need specialized software or command-line tools.

Can I undo a partition deletion?

Not directly. Once you confirm the deletion, the partition is gone from the partition table. You can use recovery software to restore the files, or you can recreate the partition manually, but you cannot undo the deletion itself. This is why backing up important files before you delete a partition is important.

Do I need to restart my computer after deleting a partition?

Usually not, unless you deleted a partition on the drive that holds your operating system. If you deleted a partition on an external drive or a secondary internal drive, you can use the space when ready. If you deleted a partition on your main drive, restart your computer to make sure everything is working correctly.