Delete Map Network Drive Windows 11: 4 Ways
In this article
To delete a mapped network drive in Windows 11, open File Explorer, right-click the mapped drive under "This PC," and select "Disconnect." Alternatively, use the "Disconnect network drive" button in the File Explorer ribbon, or run the net use Z: /delete command in Command Prompt or PowerShell. This removes the drive letter assignment so it no longer appears in File Explorer or other apps.
Why Mapped Drives Appear and How They Work
When you map a network drive, Windows assigns a drive letter (like Z:) to a shared folder on another computer, NAS, or server. The mapping is stored in the Windows registry under HKEY_CURRENT_USER\Network and is reconnected at sign-in if you selected "Reconnect at sign-in." This makes the remote folder appear as a local drive, which simplifies access for scripts, backups, and everyday file operations. However, you may need to remove a mapping when the share is no longer used, the server path changes, or you want to free up a drive letter.
Method 1: Disconnect from File Explorer
The most direct way is through File Explorer's context menu:
- Open File Explorer (Win + E).
- In the left sidebar, click "This PC."
- Right-click the mapped drive under "Network locations" or "Devices and drives."
- Select "Disconnect."
If the drive is not visible, it may be hidden because the share is unavailable. In that case, use the ribbon method: select the drive, then click the "..." (ellipsis) in the toolbar and choose "Disconnect network drive." This action only removes the mapping; it does not delete any files on the server.
Method 2: Use the Ribbon Button
In File Explorer, select "This PC" in the left pane. On the top ribbon, click the "Computer" tab (if you're using the classic ribbon) or the "..." menu (if the simplified ribbon is enabled). Look for the "Disconnect network drive" icon—it shows a drive with a red X. Click it, then select the mapped drive from the list and click "OK." This method is useful when the drive is not responding or you want to remove multiple mappings at once. The ribbon button is also available when you right-click a drive and choose "Disconnect," but the ribbon is more discoverable for users who prefer menus.
Method 3: Command Line (net use)
For power users and scripters, the net use command is fast and can be automated. Open Command Prompt or PowerShell (not as administrator is fine for user mappings) and type:
net use Z: /delete
Replace Z: with the actual drive letter. To remove all mapped drives, use:
net use * /delete
You can also use net use without arguments to list current mappings, which helps confirm the exact drive letter. This method works even if the server is offline, because it only removes the local mapping. If you get an error like "The network connection is not found," double-check the drive letter or use the asterisk wildcard.
Method 4: Remove via Settings (Windows 11 24H2 and Later)
Starting with Windows 11 version 24H2, Microsoft added a "Disconnect" option in the Settings app under System > Storage > Advanced storage settings > Network drives. This page lists all mapped drives and shows their status. Select the drive and click "Disconnect." This is a newer interface that some users prefer over File Explorer. If you don't see this section, your Windows version may be older, so stick with the File Explorer or command-line methods.
Common Problems and Misconceptions
One frequent issue is that the mapped drive reappears after deletion if it was set to reconnect at sign-in. To prevent this, you must delete the mapping while the drive is connected, or use net use Z: /delete and then check that the "Reconnect at sign-in" checkbox is cleared on the mapping. Another misconception is that deleting the mapping deletes the shared folder or its contents—it does not. The data remains on the server. If the drive letter is still visible after deletion, press F5 to refresh File Explorer or restart the app. Sometimes a mapped drive is held by a running program (like an open file handle), and Windows will not remove it until that program closes. In that case, close all windows and retry.
Alternatives to Deleting a Mapping
Instead of deleting, you can temporarily disable a mapping by renaming the drive letter or changing its target path. To change the path, right-click the drive, select "Disconnect," then re-map with the new UNC path (e.g., \\server\share). If you only want to hide the drive from File Explorer without removing the mapping, you can use Group Policy or registry tweaks, but that is more complex and not recommended for casual users. For network shares that are no longer needed, deleting the mapping is the cleanest approach.
Frequently Asked Questions
Why can't I delete a mapped drive?
If the drive is in use by an application (like a Word document open from that location), Windows will not let you disconnect it. Close all files and programs that might be using the drive, then try again. Also, if the drive is set to reconnect at sign-in, you may need to delete it twice or use the command line to ensure it doesn't come back.
Does deleting a mapped drive affect the files on the server?
No. The mapping is just a shortcut. Deleting it only removes the drive letter from your PC. The shared folder and its contents remain untouched on the server or NAS.
How do I delete multiple mapped drives at once?
Use the command line: open Command Prompt and type net use * /delete. This removes all mapped drives for your user account. In File Explorer, you can select multiple drives (hold Ctrl) and right-click to disconnect, but the ribbon only allows one at a time.
What is the difference between "Disconnect" and "Delete" in the context menu?
In Windows 11, the right-click context menu for a mapped drive shows "Disconnect." There is no "Delete" option because you are not deleting the drive itself—only the mapping. Some third-party file managers may use "Delete" but it means the same thing.
Can I delete a mapped drive if the server is offline?
Yes. The mapping is stored locally, so you can remove it even if the network share is unreachable. Use the command line method or right-click and choose "Disconnect"—Windows will remove the mapping without needing to contact the server.