I
Insight Horizon Media

How do I delete a partition from a hard drive in command prompt?

Author

Sarah Cherry

Published Feb 17, 2026

How do I delete a partition from a hard drive in command prompt?

To delete a partition:

  1. At a command prompt, type diskpart.
  2. At the DISKPART prompt, type select disk 0 (Selects the disk.)
  3. At the DISKPART prompt, type list partition.
  4. At the DISKPART prompt, type select partition 4 (Selects the partition.)
  5. At the DISKPART prompt, type delete partition.
  6. At the DISKPART prompt, type exit.

How do I Unpartition my hard drive?

Right-click the partition you want to delete and click “Delete Volume” from the menu. Look for what you called the drive when you originally partitioned it. This will delete all data from this partition, which is the only way to unpartition a drive.

How do I delete a partition on my hard drive Windows 10?

How to delete a partition using Disk Management

  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. Source: Windows Central.
  5. Click the Yes button to confirm all the data will be erased.

How do I merge hard drive partitions?

Now you can proceed to the guide below.

  1. Open the partition manager application of your choice.
  2. When in the application, right-click on the partition you want to merge and select “Merge Partitions” from the context menu.
  3. Select the other partition you want to merge, then click on the OK button.

Why can’t I delete a partition in disk management?

If the Delete Volume option is greyed out for you in Disk Management on Windows 11/10, it can be due to the following factors: There is a Page file on the volume that you are trying to delete. There are system files present on the volume/partition you’re trying to delete. The volume contains the Operating System.

How do I remove partition and add to C drive?

  1. Click on Start button and right lick on Computer and then select Manage on the menu. Click on Disk Management in the left pane of the Computer Management Window.
  2. Press Yes to continue the process. Right click on C d and select Extend Volume.
  3. Press Finish to close the wizard.

How do I delete merge partitions in Windows 10?

Method 1: Merge partitions using Disk Management in Windows 10

  1. Open the Disk Management tool using one of these methods:
  2. Locate the volumes you want to combine and select one of them which you will delete. For example, when merging the C: and D:
  3. Right-click on the partition you’re deleting and click “Delete Volume.”

How do I delete a partition on my external hard drive Windows 10?

In Windows 10, you can easily open the Disk Management console by right-clicking Start button and choose “Disk Management option from the Start menu”. In Disk Management, locate the external hard disk and the partition you want to remove. Right-click on the partition and select Delete Volume from the context menu.

How do I delete a partition on a USB drive?

Step 1: Open Disk Management by right-clicking Start menu and choosing Disk Management.

  1. Step 2: Locate the USB drive and the partition to be deleted.
  2. Step 4: Type delete volume and press Enter.
  3. Step 2: Select the partition to be deleted in the software and click the Delete button from toolbar.

How do I delete a raw partition in Windows 10?

Erasing data from RAW Format Drive

  1. Format the Drive with Disk Management Tool. Connect the storage device with your PC via USB or SATA port. Press ‘Windows+X’ and click ‘Disk Management’
  2. Use Data Erasure Software. Install and run BitRaser File Eraser.

How do I remove UEFI from USB NTFS?

Method 1. Delete EFI System Partition with Diskpart

  1. Open DiskPart on your PC. Hit “Windows Key + R” to open the run dialogue box.
  2. Change EFI system partition ID and set it as a data partition.
  3. Delete the EFI partition with the command line.
  4. Complete EFI deleting process.