Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How to Delete Mapped Network Drive on Windows

How to Delete Mapped Network Drive on Windows

Abhishek SilwalBy Abhishek SilwalAugust 18, 2022
delete mapped drive

Mapping a network drive is one of the most convenient ways to create a shortcut or link to a shared resource on your Windows system. The mapped drive shows up under Network locations inside This PC on your File Explorer. You can also share a folder from your system and map it to a drive for easier access.

However, if you no longer need such a shortcut, it only creates more branches on your network locations. Additionally, if you have multiple network drives, it can be complicated to track which drive links to which folder.

In such scenarios, it’s better to delete the drive network drive. There are many ways to do so on the Windows system, which we have provided in this guide.

Table of Contents

  • How to Delete Mapped Network Drive on Windows
    • Through File Explorer
    • Using Command-line Interface
    • With Registry Editor
    • From Network Shortcuts
  • Troubleshooting Can’t Delete Mapped Network Drive

How to Delete Mapped Network Drive on Windows

Below mentioned are the different ways to delete a mapped network drive on Windows. You can pick and use any one of them.

Through File Explorer

The usual way to delete a mapped network drive on Windows is through the file explorer. Here are the necessary steps:

  1. Press Win + E to open File Explorer.
  2. Go to This PC.
  3. Click on the three-dot icon from the menu bar.
  4. Choose Disconnect network drive.
    disconnect-network-drive-windows
  5. If you have only one network drive, it will disconnect or delete it. If you have more, it shows you a list of the drives.
  6. Select the one you wish to delete and click OK.

You can also right-click on the network drive under Network locations and select Disconnect or Show more options > Disconnect.

If you have mapped a network location instead of a drive, it shows up as a folder in this group. To remove it, you need to right-click on it and select Delete or Show more options > Delete.

Using Command-line Interface

You can also use the command-line interfaces like Command Prompt and Windows PowerShell to delete a mapped drive. They use separate default commands, but you can also use the Command Prompt’s command with PowerShell.

Here’s how you can use the two CLIs to delete a mapped network drive on Windows:

Command Prompt

  1. Open Run by pressing Win + R.
  2. Type cmd and press Enter to open Command Prompt.
  3. Type net use and press Enter to list out all mapped network drives.
  4. Enter the command net use <Drive Letter> /delete or net use <Drive Letter> /d. For example, net use Y: /d
    net-use-network-drive-delete

If you want to delete all mapped network drives, enter the command net use * /d and then, type Y and press Enter to confirm.

Windows PowerShell

  1. Press Win + R to open Run.
  2. Type powershell and press Enter to open Windows PowerShell.
  3. If you have PowerShell 7, it’s better to use this CLI instead. You can open it by entering pwsh on Run
  4. Enter Get-SmbMapping to list all mapped drives.
    powershell-get-all-network-drives
  5. Enter Remove-PSDrive -Name <Drive Letter without colon>
  6. Then, enter Get-SmbMapping again to check if the drive is gone. If not, enter Remove-SmbMapping <Drive Letter with colon> and then, restart your PC.

With Registry Editor

It is also possible to disconnect the mapped drives by deleting the registry entries related to the drive. First, back up your registry to account for system issues due to unintentional changes.

Then, follow the instructions below to delete mapped drives using the Registry Editor:

  1. Open Run and enter regedit to open the Registry Editor.
  2. Navigate to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\
  3. On the navigation pane on the left side, you should see the mapped network drives inside the MountPoints2 key.
  4. Right-click on the drive you want to remove and select Delete.
    registry-delete-mount-point-network-drive
  5. Confirm with Yes.
  6. Then, Navigate to Computer\HKEY_CURRENT_USER\Network
  7. This key should contain the registry keys for all the network drives.
  8. Select the key for the drive you wish to remove and press Delete.
  9. Click Yes to confirm.

Restart your PC to delete the mapped drive.

From Network Shortcuts

You can also delete your mapped network locations or folders from within the Network Shortcuts directory. This method only deletes the mapped folders and not the mapped drives.

Here’s how you can do it:

  1. Open Run and enter %AppData%\Microsoft\Windows\Network Shortcuts. It opens this location on the file explorer.
  2. Select the network folder’s shortcut inside the folder and press Delete. You can also press Ctrl + Shift + Delete if you want to delete it permanently.

Troubleshooting Can’t Delete Mapped Network Drive

If you can’t delete the mapped network drive using any of the above methods, it’s likely that there’s some temporary issue in the Windows Explorer app. This may happen if you are running many tasks that use this process.

First, try refreshing by pressing Ctrl + R or F5 inside This PC. If the drive is still present you need to restart Windows Explorer. To do so,

  1. Press Ctrl + Shift + Esc to open the Task Manager.
  2. Go to the Details tab.
  3. Click on explorer.exe and select End Task.
    endtask-explorer
  4. Click on File on the menu bar and select Run new task.
  5. Type explorer.exe and press Enter.

Check if the drive is gone. If not, try deleting it again.

We also recommend updating your Windows OS to the latest version to prevent any outdated OS issues from hindering this process.

how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

how to make cursor bigger

How to Make Cursor Bigger

February 3, 2023
enable secure boot msi bios

How to Enable Secure Boot on MSI Motherboard

February 3, 2023
how to add device to microsoft account

How to Add Device to Microsoft Account

February 2, 2023
how to delete win backup files

How to Delete Backup Files on Windows

January 29, 2023
how to reset password on hp laptop

How to Reset Password on HP Laptop

January 30, 2023
Reset BIOS password

4 Ways to Reset BIOS Password

January 28, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
usb a vs usb c

USB A Vs USB C – What’s the Difference?

January 31, 2023
how long does a cmos battery last

How Long Does a CMOS Battery Last

January 25, 2023
thunderbolt vs usb c

Thunderbolt Vs USB C: What’s the Difference

January 25, 2023
You may also like
Razer Mouse Not Working

Razer Mouse Not Working? Here’re 9 Ways to Fix It

February 3, 2023
how to make cursor bigger

How to Make Cursor Bigger

February 3, 2023
surface-screen-flickering

Why is My Surface Screen Flickering? 6 Ways to Fix It

February 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.