• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Computing

Software, PCs, Macs, Consoles, Handhelds, & More

  • Home
  • About
  • Contact
  • Contribute

Remove Drive letter with Command Prompt when Disk Management won’t.

Windows Command Prompt

To remove a drive letter from a partition using the Command Prompt in Windows, follow these steps:

  1. Open Command Prompt as Administrator:
    • Press Win + S, type cmd, right-click on Command Prompt, and choose Run as administrator.
  2. Run DiskPart:
    • Type diskpart and press Enter.
  3. List the Volumes:
    • Type list volume and press Enter to display all volumes and their assigned drive letters.
  4. Select the Target Volume:
    • Find the volume with the drive letter you want to remove.
    • Type select volume X (replace X with the volume number of the partition) and press Enter.
  5. Remove the Drive Letter:
    • Type remove letter=Y (replace Y with the drive letter you want to remove) and press Enter.
  6. Exit DiskPart:
    • Type exit and press Enter to leave DiskPart, then close the Command Prompt.

The drive letter will be removed, and the partition will no longer be accessible via that drive letter. However, the partition’s data will remain intact, and it can still be reassigned a letter if needed.

by Jack Alltrade on February 18, 2025

Filed Under: Command Prompt Tagged With: Disk Management, Drive Letter

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Command Prompt
  • Computing
  • DOS
  • Hardware
  • Software
  • Tech Terms
  • Windows

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates