Type the following command to select the drive with the partition you want to delete and press Enter: select disk DRIVE-NUMBER.Type the following command to get a list of all the available drives and press Enter: list disk.To delete a specific storage partition with a variant of the DiskPart command, use these steps: Type the following command to delete the volume from the drive and press Enter: delete volumeĪfter you complete the steps, the volume and its data will no longer be available on the drive.For example, this command deletes the volume number 6: select volume 6 In the command, make sure to replace "VOLUME-LETTER" for the letter of the volume you want to delete. Type the following command to select the volume you want to delete and press Enter: select volume VOLUME-NUMBER.Type the following command to get a list of all the available volumes and press Enter: list volume.Type the following command to start diskpart and press Enter: diskpart.Search for Command Prompt, right-click the top result, and select the Run as administrator option.To quickly delete a partition with the volume command, use these steps: How to delete a partition from Command PromptĪlternatively, you can use the DiskPart command line with Command Prompt to delete a storage partition in at least two different ways. Once you complete the steps, the command will erase the partition from the hard drive you specified in the command. For example, this command deletes partition number 1 in drive 2: Remove-Partition -DiskNumber 1 -PartitionNumber 2 In the command, make sure to replace "DRIVE-NUMBER" and "PARTITION-NUMBER" with the number of the drive and partition you want to delete. Type the following command to delete the partition (and its contents) and press Enter: Remove-Partition -DiskNumber DRIVE-NUMBER -PartitionNumber PARTITION-NUMBER.For example, this command lists the partitions of drive 5: Get-Partition -DiskNumber 5 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). Type the following command to get a list of all the available partitions on the drive and press Enter: Get-Partition -DiskNumber DRIVE-NUMBER.Type the following command to get a list of all the available drives and press Enter: Get-Disk.To delete a partition without a drive letter on Windows 10, use these steps: Type Y and press Enter to confirm the deletion.Īfter you complete the steps, the partition will be removed, and the space on the drive will show as unallocated.ĭelete partition without an assigned drive letter.For example, this command deletes the Z partition: Remove-Partition -DriveLetter Z In the command, make sure to replace "PARTITION-LETTER" with the letter of the partition you want to delete. Type the following command to delete the partition (and its contents) and press Enter: Remove-Partition -DriveLetter PARTITION-LETTER.Type the following command to get a list of all the available partitions and press Enter: Get-Volume. Search for PowerShell, right-click the top result, and select the Run as administrator option.To delete a partition that has an assigned letter, use these steps: On PowerShell, you have at least two different methods to remove a partition, including using the drive letter or partition number with different commands.ĭelete partition with an assigned drive letter How to delete a partition from PowerShell 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. Click the Yes button to confirm all the data will be erased.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |