4 ways to delete mapped network drives in Windows
Mapping network drives and other locations is a good way of keeping remote data at hand in your local area network. However, at some point, you might also want to delete some of these mappings and keep only those that you really use on a daily basis. In this article, we'll show you exactly how to do that. Here are four methods for deleting mapped drives and network locations from Windows 10, Windows 8.1 and Windows 7:
NOTE: All the ways for removing network mappings work the same way in all modern versions of Windows: Windows 7, Windows 8.1 and Windows 10. To keep things simple, we'll use screenshots taken mainly in Windows 10. When needed, we also include screenshots from Windows 7 or Windows 8.1.
1. Use Windows/File Explorer to delete a mapped network drive from Windows
If you need to delete a previously created drive mapping, the first thing you must do is open File Explorer if you use Windows 10 or Windows 8.1, or Windows Explorer if you use Windows 7. Then, on the left side of the window, select This PC if you use Windows 10 or Windows 8.1, and Computer if you use Windows 7.
Regardless of the operating system you have, all of the mapped drives will be available in the Network Location group, beneath your hard drives and other similar devices like CD/DVD units or USB memory sticks.
To delete a drive mapping toward a network location, right-click on it and select Disconnect.
To remove a drive mapping towards a network folder or FTP site, right-click on it and select Delete.
The deleted mapped drives will stop showing. To restore them, you will have to create them again.
2. Use Command Prompt to delete a mapped network drive from Windows
One method that works in all modern versions of Windows is to use the Command Prompt. Open it and type: net use drive letter /delete. Then, press Enter. For example, we have a drive mapping using the letter Z, so we have to type: net use Z: /delete.
You are informed that the mapped drive was deleted successfully and the network drive disappears immediately from File/Windows Explorer. An important fact to consider is that this only works for drive mappings which have a letter assigned. For network location mappings such as FTP servers or web servers, this command does not work.
3. Use Windows/File Explorer to remove a network location mapping from your PC by erasing its shortcut
A network location mapping is actually a shortcut stored as a file on your Windows PC. If you can't delete it using the first method we've shown, you can try others. One of them is to use File/Windows Explorer to delete its shortcut. Open File/Windows Explorer and navigate to "C:\Users\Your_User_Name\AppData\Roaming\Microsoft\Windows\Network Shortcuts." Your_User_Name is the name of your Windows user account.
In the Network Shortcuts folder, you will find all network location mappings. Select the ones you no longer want to use and delete them by using the right-click menu and selecting Delete or or by pressing Delete on your keyboard.
If you're using Windows 7, you must also confirm that you want to remove the selected item(s). If you're using Windows 10 or 8.1, everything is deleted immediately, with no additional confirmation.
4. Use the Command Prompt to remove a network location mapping from your PC by erasing its shortcut
You can also use the Command Prompt to browse your PC and remove a network mapping from it by deleting its shortcut.
Start by opening the Command Prompt and use the cd (Change Directory) command to navigate to the location that we mentioned in the previous section of this article. You should type cd "C:\Users\Your_User_Name\AppData\Roaming\Microsoft\Windows\Network Shortcuts," where Your_User_Name is the name of your Windows user account.
Then, use the del (Delete) command to remove the shortcut for the network mapping you no longer want. For instance, if you would like to delete a network mapping named Music, you should run this command: del Music. You are asked to confirm the deletion.
Answer yes by typing the letter y. Once you do that, the network mapping disappears immediately from your Windows computer or device.
Troubleshoot network drives and locations that won't go away
There are times when maybe none of the methods we described above in this article don't work as they should. When such a situation occurs, there are a few things you should try:
- If you disconnect a mapped network drive or delete a network location, but it doesn't disappear from your Windows/File Explorer, the reason might be that the Windows/File Explorer didn't get to refresh its contents. Try to press the F5 key on your keyboard or click/tap on Refresh in the right-click menu inside Windows/File Explorer.
- If you tried to remove a network mapping from your Windows PC, but you get an error about that location as no longer being available, it's likely that your Windows operating system is outdated. We've tested to see what happens when the PC with the mapped network drives and/or locations is disconnected from the network or when the network resources are no longer available (target devices are shut down or are no longer part of the network), and all the methods we described in this article worked correctly. However, note that we used Windows 10 with Creators Update, Windows 7 with Service Pack 3 and Windows 8.1 with all the available updates installed.
- Sometimes, it can happen that even though you disconnected or deleted a network drive or location from your Windows PC, the operating system gets hung up and can't remove these linkings on the fly. A good idea in such a situation would be for you to restart your Windows computer.
As you can see from this article, there are quite a few alternatives to deleting drive mappings. The instructions above apply to all modern Windows versions: Windows 10, Windows 7 and Windows 8.1. If you need further help on this matter, don't hesitate to use the comments below.