Windows always assigns a drive letter to any internal or external connected storage devices. This is so the devices can be identified and interacted with automatically and without the need for you to create an identifier manually.

Windows reserves drives A and B for floppy disks and will start assigning drives letters beginning with the C: drive. The C: drive is the one you likely know as the drive that contains most of the files that you access from File Explorer on your hard drive. If your computer has a secondary drive, then it likely is the D: drive. Having the D: drive available is common if you’ve bought a computer that has the more expensive SSD and then the cheaper HDD. Sometimes manufacturers offer HDDs as well that can be used to fill up with games or other content that doesn’t need to be stored on the SSD.

Just because the drive letters are automatically assigned doesn’t mean that you can’t change them yourself. And there are some practical reasons as to why you might want to do this that go beyond appearance. For instance, you might not want a partition to have any drive letter so it cannot be accessed.

The following tutorial demonstrates how to remove a drive letter when you’re using a version of the Windows 10 operating system.

Method One: How to Remove Drive Letter in Disk Management

You can remove a drive letter from Disk Management in Windows 10.

1. Open the Run dialog by pressing the Windows logo + R keys and then type diskmgmt.msc and click on the OK button.

Alternatively, you could type Disk management into Search in the taskbar and then click on the Create and format hard disk partitions Control panel result under the best match section to bring up the same Disk management window.

2. From Disk Management, select the volume that you want to change by clicking on it once so it is highlighted.

3. Locate the disk that appears toward the bottom of the Disk Management window, and then right-click on the drive and select the Change Drive letter and paths… link from the context menu.

4. Click on Remove.

5. When you get a warning letting you know that some programs may rely on drive letters before they can run, click on the Yes button to proceed.

Method Two: How to Remove Drive Letter in Command Prompt

Here is how you can remove a drive letter from the Command Prompt in Windows 10.

1. Open the elevated Command Prompt window.

2. If prompted by User Account Control, click on the Yes button.

3. In the Command Prompt window, type the following command into the command line and then press the Enter key on your keyboard to execute it:

diskpart

Method Three:  How to Remove Drive Letter in PowerShell

Here is how you can remove a drive letter from the Windows PowerShell in Windows 10.

1. If prompted by User Account Control, click on the Yes button.

2. In the PowerShell window, type the following command and then press the Enter key on your keyboard to execute it:

Get-Partition

3. All the disks on your computer will be listed in the results in numerical order. Take note of the disk number and the partition number for the drive letter.

4. In the PowerShell window, type the following command and then press the Enter key on your keyboard to execute it:

Get-Disk <disk number> | Get-Partition

Note: Change where it says disk number for the real number of the disk that you found in the steps above.

5. In the PowerShell window, type the following command and then press the Enter key on your keyboard to execute it:

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

Notes

  • Change where it says disk number for the real number of the disk from the steps above.
  • Change where it says partition number for the real number of the partition from the steps above.
  • Change where it says drive letter for the real letter of the driver from the steps above.

You can now close the Windows PowerShell window and continue using your computer if you like.

Method Four: How to Remove Drive Letter in Command Prompt

More information on what you can do with the command prompt and drives:

Here is how you can remove a drive letter from the Command Prompt in Windows 10.

1. Open the elevated Command Prompt.

2. If prompted by User Account Control, click on the Yes button.

3. In the Command Prompt window, type the following command into the command line and then press the Enter key on your keyboard to execute it:

mountvol <Drive Letter>: /d

Note: Change where it says Drive Letter for the real letter of the drive that you’re using.

You can now close the Command Prompt and continue suing your computer if you like.

Method Five: How to Remove Drive Letters of Previously Connected Drives and Disks Using DiskPart > automount Command

Here is how you can remove a drive letter from the Command Prompt using the DiskPart > automount command in Windows 10.

1. Open the elevated Command Prompt.

2. If prompted by User Account Control, click on the Yes button.

3. In the command line, type the following commands, one at a time, and then press Enter on your keyboard to execute them:

diskpart

automount scrub

Close the Command Prompt and then restart the computer for the changes to be applied.

Method Six: How to Remove Drive Letters of Previously Connected Drives and Disks Using mountvol Command

Here is how you can remove a drive letter from the Command Prompt using the mountvol command in Windows 10.

1. If prompted by User Account Control, click on the Yes button.

2. In the command line, type the following command and then press Enter on your keyboard to execute it:

mountvol /r

Close the Command Prompt and then restart the computer for the changes to be applied.

That’s all.