Published by


Brink's Avatar
Administrator

Posts: 28,611

Show Printable Version 


How to Remove a Drive Letter in Windows 10

By default, Windows 10 will automatically assign an available drive letter to any connected internal and external storage devices.

Windows progresses through the alphabet from A to Z to assign available drive letters to devices as connected.
  • Windows reserves the drive letters A and B for floppy drives.
  • The drive letter C can only be used for the drive Windows is installed on. If you multi boot operating systems, the currently running Windows will always show its drive letter as C.

If you remove the drive letter from a volume, partition, or disk, it will no longer be available to show as a drive in File Explorer "This PC".

This tutorial will show you different ways to remove a drive letter in Windows 10.

You must be signed in as an administrator to remove a drive letter.


 CONTENTS:






Remove Drive Letter in Windows 10 OPTION ONE Remove Drive Letter in Windows 10
To Remove Drive Letter in Disk Management

1. Press the Win+R keys to open Run, type diskmgmt.msc into Run, and click/tap on OK to open Disk Management.

2. Right click or press and hold on the drive (ex: "G") you want to remove the drive letter of, and click/tap on Change Drive Letter and Paths. (see screenshot below)

Name:  Remove_drive_letter_in_Disk_Management-1.jpg
Views: 161
Size:  133.3 KB

3. Click/tap on the Remove button. (see screenshot below)

Name:  Remove_drive_letter_in_Disk_Management-2.png
Views: 159
Size:  15.1 KB

4. Click/tap on Yes to confirm. (see screenshot below)

Name:  Remove_drive_letter_in_Disk_Management-3.png
Views: 155
Size:  9.6 KB

5. When finished, you can close Disk Management if you like.






Remove Drive Letter in Windows 10 OPTION TWO Remove Drive Letter in Windows 10
To Remove Drive Letter in Command Prompt

1. Open an elevated command prompt.

2. Enter diskpart into the elevated command prompt, and press Enter. (see screenshot below)

3. Enter list volume into the elevated command prompt, and press Enter.

4. Make note of the volume number (ex: 5) for the drive letter (ex: "G") you want to remove.

5. Enter the command below into the elevated command prompt, and press Enter.

select volume <volume number>

Substitute <volume number> in the command above with the actual volume number (ex: "5") from step 4 above for the drive letter (ex: "G") you want to remove.

For example: select volume 5

6. Enter the command below into the elevated command prompt, and press Enter.

remove letter=<drive letter>

Substitute <drive letter> in the command above with the actual drive letter (ex: "G") you want to remove.

For example: remove letter=G

If the new drive letter you assign is not available, you will get an error message indicating so in the command prompt. You will just need to repeat this step to assign an available drive letter.

7. When finished, you can close the elevated command prompt if you like.

Name:  Remove_drive_letter_diskpart.png
Views: 151
Size:  43.3 KB






Remove Drive Letter in Windows 10 OPTION THREE Remove Drive Letter in Windows 10
To Remove Drive Letter in PowerShell

1. Open an elevated PowerShell.

2. Enter Get-Partition into the elevated PowerShell, and press Enter. (see screenshot below)

3. Make note of the disk number (ex: "1") and PartitionNumber (ex: "3") for the DriveLetter (ex: "G") you want to remove.

The disks will be listed in numerical order starting with "0" at the top.

4. Enter the command below into the elevated PowerShell, and press Enter to verify the disk number (ex: "1") is correct for the drive letter (ex: "G") you want to remove.

Get-Disk <disk number> | Get-Partition

Substitute <disk number> in the command above with the actual disk number (ex: "1") from step 3 above for the drive letter (ex: "G") you want to remove.

For example: Get-Disk 1 | Get-Partition

5. Enter the command below into the elevated PowerShell, and press Enter to verify the disk number (ex: "1") is correct for the drive letter (ex: "G") you want to remove.

Remove-PartitionAccessPath -DiskNumber <disk number> -PartitionNumber <partition number> -Accesspath <drive letter>:

Substitute <disk number> in the command above with the actual disk number (ex: "1") from step 3 and verified in step 4 above for the drive letter (ex: "G") you want to remove.

Substitute <partition number> in the command above with the actual PartitionNumber (ex: "3") from step 3 for the drive letter (ex: "G") you want to remove.

Substitute <drive letter> in the command above with the actual DriveLetter (ex: "G") from step 3 above you want to remove.

For example: Remove-PartitionAccessPath -DiskNumber 1 -PartitionNumber 3 -Accesspath G:

6. When finished, you can close the elevated PowerShell if you like.

Click image for larger version. 

Name:	Remove_drive_letter_in_PowerShell.png 
Views:	16 
Size:	97.1 KB 
ID:	182734


That's it,
Shawn