How to delete a drive partition on Windows 10

Windows 10 delete drive partition
(Image credit: Future)

On Windows 10, a partition (or volume) is a logical division of the space on a physical storage drive with a specific file system and settings the system shows to the user as a separate drive.

Since a drive can hold many partitions, and sometimes, you may need to organize them, Windows 10 includes multiple tools to ease the process of removing those partitions you no longer need to make more space available to increase the size of another partition. Or you can also use the tools to clean the storage to prepare it with a different partition scheme and file system.

This guide will walk you through the steps to delete a partition on an internal or external drive using Disk Management, PowerShell, and Command Prompt.

Warning: These instructions will erase all the data stored inside the partition. If you have any important files you want to preserve, creating a backup of that data is recommended before proceeding.

How to delete a partition from Disk Management

To delete a partition (or volume) with Disk Management on Windows 10, use these steps:

  1. Open Start.
  2. Search for Disk Management.
  3. Select the drive with the partition you want to remove.
  4. Right-click (only) the partition you want to remove and select the Delete Volume option.

(Image credit: Future)
  1. Click the Yes button to confirm all the data will be erased.

Once you complete the steps, the partition and its contents will no longer be available on the drive making space available to expand another partition or format the drive with a new scheme.

How to delete a partition from PowerShell

On PowerShell, you have at least two different methods to remove a partition, including using the drive letter or partition number with different commands.

Delete partition with an assigned drive letter

To delete a partition that has an assigned letter, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to get a list of all the available partitions and press Enter: Get-Volume
  4. Type the following command to delete the partition (and its contents) and press Enter: Remove-Partition -DriveLetter PARTITION-LETTER

In the command, make sure to replace "PARTITION-LETTER" with the letter of the partition you want to delete. For example, this command deletes the Z partition: Remove-Partition -DriveLetter Z

(Image credit: Future)
  1. Type Y and press Enter to confirm the deletion.

After you complete the steps, the partition will be removed, and the space on the drive will show as unallocated.

Delete partition without an assigned drive letter

To delete a partition without a drive letter on Windows 10, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to get a list of all the available drives and press Enter: Get-Disk
  4. Type the following command to get a list of all the available partitions on the drive and press Enter: Get-Partition -DiskNumber DRIVE-NUMBER

In the command, make sure to replace "DRIVE-NUMBER" for the number of the drive with the partition you want to erase (see step 3). For example, this command lists the partitions of drive 5: Get-Partition -DiskNumber 5

  1. Type the following command to delete the partition (and its contents) and press Enter: Remove-Partition -DiskNumber DRIVE-NUMBER -PartitionNumber PARTITION-NUMBER

In the command, make sure to replace "DRIVE-NUMBER" and "PARTITION-NUMBER" with the number of the drive and partition you want to delete. For example, this command deletes partition number 1 in drive 2: Remove-Partition -DiskNumber 1 -PartitionNumber 2

(Image credit: Future)
  1. Type Y and press Enter to confirm the deletion.

Once you complete the steps, the command will erase the partition from the hard drive you specified in the command.

How to delete a partition from Command Prompt

Alternatively, you can use the DiskPart command line with Command Prompt to delete a storage partition in at least two different ways.

Delete partition with volume command

To quickly delete a partition with the volume command, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to start diskpart and press Enter: diskpart
  4. Type the following command to get a list of all the available volumes and press Enter: list volume
  5. Type the following command to select the volume you want to delete and press Enter: select volume VOLUME-NUMBER

In the command, make sure to replace "VOLUME-LETTER" for the letter of the volume you want to delete. For example, this command deletes the volume number 6: select volume 6

  1. Type the following command to delete the volume from the drive and press Enter: delete volume

(Image credit: Future)

After you complete the steps, the volume and its data will no longer be available on the drive.

Delete partition with partition command

To delete a specific storage partition with a variant of the DiskPart command, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to start diskpart and press Enter: diskpart
  4. Type the following command to get a list of all the available drives and press Enter: list disk
  5. Type the following command to select the drive with the partition you want to delete and press Enter: select disk DRIVE-NUMBER

In the command, make sure to replace "DRIVE-NUMBER" for the number of the drive with the partition you want to delete (see step 4). For example, this command selects disk number 5: select disk 5

  1. Type the following command to list all the available partitions in the drive and press Enter: list partition
  2. Type the following command to select the partition you want to delete and press Enter: select partition PARTITION-NUMBER

In the command, make sure to replace "PARTITION-LETTER" with the letter of the partition you want to delete. For example, this command deletes partition number 1: select partition 2

  1. Type the following command to delete the partition from the drive and press Enter: delete partition

(Image credit: Future)

Once you complete the steps, the partition will be erased from the drive, making available the space to create a new partition with a different file system or extend another volume.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

Read more
Windows 10 mount drive on empty folder
How to mount hard drive as folder on Windows 10
Surface Laptop Studio 2 photos
How to transfer your Windows 11 setup to a new hard drive — no extra app required
Ubunutu 24.04 running on WSL 2 on Windows 11 inside Windows Terminal.
How to completely remove a Linux distro from the Windows Subsystem for Linux (WSL)
Windows 11 Disk Quotas settings
How to limit users storage usage with Disk Quotas on Windows 11 (and 10)
Convert MBR to GPT on Windows 10
How to convert MBR to GPT drive to switch BIOS to UEFI on Windows 10
Windows 11 mount ISO file
How to mount ISO images on Windows 11 and 10
Latest in Windows 10
Windows 10 Find My Device
How to enable Find My Device on Windows 10 to recover your PC if it's ever lost or stolen
Outlook Client Hero
Microsoft just made Windows 10 worse, and there's (almost) nothing you can do about it
Windows 10 Start menu on HP ZBook Studio G4
Microsoft will retroactively downgrade this part of Windows 10 next month
Former Microsoft Executive Vice President Terry Myerson stands in front of a presentation about Windows 10
Microsoft addresses the 'elephant in the room,' discusses upcoming end of Windows 10 support
Surface Hub 2S
Windows 10 for PCs is not the only version of Windows to reach end of support this year
Windows Insider program settings
Microsoft shuts down the Windows 10 Beta Channel just five months after reopening it
Latest in How-to
Atomfall
Can I play Atomfall on Steam Deck, ROG Ally, and other gaming handhelds?
The First Berserker: Khazan
Is The First Berserker: Khazan on Xbox Game Pass?
Clair Obscur: Expedition 33
Is Clair Obscur: Expedition 33 on Xbox Game Pass?
A close-up of Hazel in South of Midnight
Is South of Midnight on Xbox Game Pass?
Atomfall screenshot
Atomfall: How to grab the best melee weapon and melee perk right away
Atomfall District B
Atomfall: How to open District B, get inside the Robot Facility, and grab the Signal Redirector