How to delete drive partition on Windows 10 PC – Guide
In Windows 10, users can add or remove disk partitions or volumes. This is a quality feature among users because it allows users to separate their data and important files from the operating system. Additionally, users can use newly created disk partitions or volumes to back up system files and use multiple operating systems.
If user has sensitive data or information, he can hide the volume or drive that I described in my previous article about how to show or hide any drive in Windows 10. If user has no unallocated or free space to create new volume or drive, user can shrink existing drives or volumes using built-in shrink feature through Disk Management.
How to delete a partition using Disk Management
- Open Disk Management.
- On the left, click on the partition you want to delete.
- Click on the Delete button.
- The confirmation dialog will appear, asking if you want to delete the partition or volume as well. Click on Yes to delete both partitions and volumes together.
To view the disk management screen, open the Control Panel and select System and Security. In the System and Security window, under Administrative Tools, select Disk Management. ..
Remove the partition with the drive with the partition you want to remove.
To delete a volume from your computer, right-click on the partition you want to remove and select the Delete volume option. ..
Confirm that you want all data erased before clicking the “Yes” button. ..
How to delete a partition using PowerShell
The PowerShell cmdlets that you use to remove partitions are: Remove-Partition -DriveLetter C: -Size 0
Delete partition with an assigned drive letter
- Log in to your computer and open the Windows operating system.
- In the left pane, click on the Start button and then type “cmd” into the search box.
- Click on the “cmd” icon and then click on the “delete” button.
- Type “pwd” into the command prompt and then click on the “delete” button.
To search for PowerShell on your computer, right-click on the top result and select the Run as administrator option. ..
parted -l This will list all the partitions on your computer. You can use this information to create or format partitions, or to mount them for storage.
diskpart delete partition “C:\Windows”
Type Y and press Enter to confirm the deletion.
Delete partition without a drive letter assigned
- Open the Disk Management console.
- Right-click on the partition you want to delete and select Delete Partition.
- Click Yes when prompted to confirm the deletion. ..
Right-click on the top result and select the Run as administrator option.
ls -l /dev/sda This will list all the drives on your computer.
parted -l To view the partition table on a drive, type the following command: parted -t table ..
diskpart delete partition “C:\Windows”
Remove the partition number from the drive number and add the partition number to the end of the drive number.
Type Y and press Enter to confirm the deletion.
Delete partition with volume command
- Type the volume name (e.g. C:) and press Enter.
- The partition will be listed in the output, with a list of available drives and their sizes.
- To delete the partition, type the deletion command (e.g. del C:) and press Enter.
Command Prompt is a program that allows you to run commands in a separate window. Right-click on the Command Prompt and select Run as administrator.
diskpart To list the partitions on your computer, type the following command: list disk To create a new partition on your C: drive, type the following command: create partition primary size=500GB To format the new partition as NTFS, type the following command: The formatting process will take some time. When it is finished, type exit to close diskpart. ..
volumes This command returns a list of all available volumes on your computer. You can use this information to find the volume you are looking for or to view information about it.
DELETE VOLUME “C:\Users\username”
delete -v C: This will delete the drive volume C:.
Delete partition with partition command
- Open DiskPart.
- In the left pane, click on the Partition tab.
- On the Partition tab, select the disk you want to delete and click on the Delete button.
- The DiskPart window will close and you will be prompted to confirm your deletion by clicking on the Yes button.
To search for the Command Prompt, right-click on the top result and select “Run as administrator.” ..
diskpart This will start diskpart and display the following screen: DiskPart: Disk Management
ls -l /dev/sda This will list all the drives on your computer.
diskutil list -n /dev/sda1 The diskutil list command displays the contents of the /dev/sda1 partition. The -n flag tells diskutil to show all devices, not just the one you want to delete.
sudo fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes Disk /dev/sdb: 2.8 GB, 228596806400 bytes Disk /dev/sdc: 465.8 GB, 419430368000 bytes Disk /dev/sdd: 465.8 GB, 419430368000 bytes ..
diskpart Deleting the partition “C:\Windows” will delete the partition “C:\Windows” and all its contents.
diskpart delete partition “C:”
Final note
Delete Drive Partition on Windows 10 PC If you have a Windows 10 computer, you can delete the drive partition by following these steps:
- Open the Start menu and type “cmd” (without the quotes).
- Type “delete” and hit the Enter key.
- The “delete drive partition” window will open. You will be asked to select a destination for the drive partition. If you want to delete the entire drive partition, select “yes”. If you want to delete just one part of the drive partition, select “no”. Click on “yes” to delete the drive partition.