If your Windows 10 system has a hard drive partition that isn’t being used or you are unable to delete some files on that partition then using the PowerShell tool can help you to delete your partition. Once you’ve deleted a partition you can create a new one again or you can use that space to expand a partition on your device.
This can be a great option for the people who are running out of storage on their primary partition because they can use the free space to expand the partition. Users can also delete the partition using the Disk Management tool however in this guide we are going to show you how it’s done using Windows Powershell. Without waiting further, let’s get started.
How to remove partition using PowerShell in Windows 10
Step 1: Click on your search bar and make a search for Powershell. Once the App icon pops up on your screen right-click on it and select the “Run as Administrator” option.
Step 2: Once Powershell is running enter the following command:
Get-Volume
Step 3: After the Get Volume command you’ll get a list of all the partitions on your hard drive. Type the following command to delete a partition.
Remove-Partition -DriveLetter PARTITION-LETTER
For example, if you want to delete Drive E type the command as mentioned below:
Remove-Partition -DriverLetter E
Step 4: Press the Y key on your keyboard to confirm the deletion and your partition will be deleted.
That’s all, folks! More Windows 10 stuff can be found here – Windows 10 tutorials, guides, tips, tricks, and hidden features. Were we helpful? Let us know in the comments below and if you liked this guide then don’t forget to share it using the social media buttons.