How To Delete Partition In Windows 10 During Installation

 How To Delete Partition In Windows 10 During Installation | You can delete almost any partition (except for the part that makes up your Windows 10 installation), and in this guide, you’ll learn to use three tools to complete this task.

In Windows 10, a partition (or volume) is a logical division of available space on a physical storage drive with a defined file system and settings that the system presents to the user as a separate drive.

Since a drive can contain many partitions, and sometimes, you may need to organize them, Windows 10 includes multiple tools to make it easier to remove those you no longer need to free up more space to increase the size of another partition. Or you can also use the tools provided to clean up your storage to set it up with a different partitioning and file system.

In this Windows 10 guide, we will walk you through the steps for deleting a partition on an internal or external drive using Disk Management, PowerShell, and Command Prompt.

How To Delete Partition In Windows 10 During Installation

Warning: Using these instructions will erase all data stored within the partition. If you have any important files that you want to keep, it is a good idea to create a backup of that data before proceeding.

Related Articles:

How to delete a partition using Disk Management
To delete a partition (or volume) using Disk Management, use the following steps:

  1. Open the Start menu.
  2. Look for Disk Management.
  3. Select the drive containing the partition you want to remove.
  4. Right click (only) on the partition you want to remove and select Delete Volume option.
  5. Click the “Yes” button to confirm erasing all data.
    Once you complete the steps, the partition and its contents will no longer be available on the drive, freeing up space to expand another partition or format the drive with a new system.

    How to delete a partition using PowerShell

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

    Delete the partition with a specific drive letter
    To delete a partition containing a specific letter, use the following steps:

    Open the Start menu.
    Search for PowerShell, right-click on the top result, and select the Run as administrator option.
    Type the following command to get a list of all available partitions and hit Enter:

    Get size

    Type the following command to delete the partition (and its contents) and hit 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 E partition:

    Remove-partition-DriveLetter e

Type Y and hit Enter to confirm the deletion.
After completing the steps, the partition will be removed and the space on the drive will appear as unallocated.

How To Delete Partition In Windows 10 During Installation

Delete the partition without a specific drive letter
To delete a partition that does not contain a drive letter, use the following steps:

Open the Start menu.
Search for PowerShell, right-click on the top result, and select the Run as administrator option.
Type the following command to get a list of all available drives and hit Enter:

Get the disc

Type the following command to get a list of all available partitions on the drive and hit Enter:

Get Partition – Disk Number – Drive Number

In the command, be sure to replace “Drive Number” for the drive number with the partition you want to erase (see step #3).

For example, this command lists 2 drive partitions:

Get Partition – Disk Number 2

Type the following command to delete the partition (and its contents) and hit Enter:

Remove-partition-drive-number-partitionNumber-partition number

In the command, be sure to substitute ‘Drive Number’ and ‘Partition Number’ for the number of the drive and partition you want to delete.

For example, this command deletes partition #1 on drive 2:

remove-partition-disk number 1-partition number 2

Type Y and hit Enter to confirm the deletion.
Once you complete the steps, the command will erase the partition from the hard drive you selected in the command.

How To Delete Partition In Windows 10 During Installation

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

Delete partition with volume command
To quickly delete a partition using the volume command, use the following steps:

Open the Start menu.
Find Command Prompt, right-click on the top result, and select Run as administrator option.
Type the following command to start diskpart and hit Enter:

Disc

Type the following command to get a list of all available folders and hit Enter:

List size

Type the following command to select the volume you want to delete and hit Enter:

SELECT VOLUME-NUMBER SIZE

In the command, make sure to replace “VOLUME-LETTER” with the letter of the folder you want to delete.

For example, this command deletes volume number 4:

Select folder 4

Type the following command to delete the volume from the drive and hit Enter:

Delete size

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

Delete partition using partition command
To delete a specific storage partition using a variant of the DiskPart command, use the following steps:

Open the Start menu.
Find Command Prompt, right-click on the top result, and select Run as administrator option.
Type the following command to start diskpart and hit Enter:

Disc

Type the following command to get a list of all available drives and hit Enter:

menu disc

Type the following command to select the drive containing the partition you want to delete and hit Enter:

Select the disk drive number

In the command, be sure to replace DRIVE-NUMBER for the drive number with the partition you want to delete (see step #4).

For example, this command sets disk number 2:

Select disc 2

Type the following command to list all the available partitions in the drive and hit Enter:

Menu section

Type the following command to select the partition you want to delete and hit Enter:

Select the section Section 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 section #1:

How To Delete Partition In Windows 10 During Installation

Select Section 1

Type the following command to delete the partition from the drive and hit Enter:

Delete section

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