Mapped network drives make it easy to access shared folders, file servers, and network-attached storage (NAS) devices directly from File Explorer. However, there may come a time when you no longer need a particular network drive. Perhaps the shared folder has been removed, you’ve changed networks, you’re troubleshooting connection issues, or you simply want to clean up unused drive letters. In these situations, Windows 11 allows you to disconnect a network drive quickly and safely.
Disconnecting a network drive removes the shortcut between your computer and the shared network location. It does not delete any files stored on the server, NAS device, or remote computer. Instead, it only removes the mapped drive from your Windows 11 system. If needed, you can reconnect the same network drive later using its network path.
In this guide, you’ll learn multiple methods to disconnect a network drive in Windows 11, remove persistent mappings, and troubleshoot common issues that may prevent a network drive from disconnecting properly.
Method 1: Disconnect a Network Drive Using File Explorer
The easiest method is through File Explorer.
Steps:
- Open File Explorer.
- Click This PC in the navigation pane.
- Locate the mapped network drive under Network Locations.
- Right-click the network drive.
- Select Disconnect.
Windows will immediately remove the network drive from File Explorer.
The shared files remain on the remote device, but the drive letter will no longer appear on your computer.
Method 2: Disconnect Multiple Network Drives
If you have several mapped drives, you can remove them individually.
Steps:
- Open File Explorer.
- Select This PC.
- Locate each mapped network drive.
- Right-click a drive.
- Choose Disconnect.
- Repeat for any additional drives.
This helps remove outdated or unused network connections and keeps File Explorer organized.
Method 3: Disconnect a Network Drive Using Command Prompt
Advanced users can remove network drives through Command Prompt.
Steps:
- Open the Start menu.
- Search for Command Prompt.
- Open it.
Type the following command:
net use
Press Enter.
Windows will display all active network connections.
To disconnect a specific drive:
net use Z: /delete
Replace Z: with the actual drive letter.
Press Enter.
The selected network drive will be disconnected immediately.
Method 4: Remove All Network Drives at Once
If you want to clear every mapped network drive, Command Prompt provides a faster option.
Steps:
- Open Command Prompt.
- Enter:
net use * /delete
- Press Enter.
- Type Y if prompted for confirmation.
Windows will disconnect all currently mapped network drives.
This method is useful when switching networks or performing system cleanup.
Method 5: Disconnect a Network Drive Using Windows Terminal
Windows Terminal supports the same network management commands.
Steps:
- Open Windows Terminal.
- Enter:
net use
- Review the list of mapped drives.
To remove a specific drive:
net use X: /delete
- Press Enter.
The selected network drive will be removed from the system.
This method works identically to Command Prompt.
Method 6: Remove Persistent Network Drive Connections
Some network drives automatically reconnect after restarting Windows.
Steps:
- Open Command Prompt.
- Run:
net use
- Identify the persistent network drive.
- Disconnect it using:
net use Z: /delete
After removal, Windows will no longer reconnect that drive at sign-in.
This is particularly useful when old network locations continue appearing after they are no longer available.
Method 7: Disconnect an Unavailable Network Drive
Sometimes a mapped drive displays a red X or cannot connect.
Steps:
- Open File Explorer.
- Locate the unavailable drive.
- Right-click it.
- Select Disconnect.
If File Explorer cannot remove it:
- Open Command Prompt.
- Run:
net use Z: /delete
This often resolves stubborn mappings that no longer point to active network resources.
Method 8: Remove Network Credentials Associated with a Drive
After disconnecting a drive, you may also want to remove saved credentials.
Steps:
- Open the Start menu.
- Search for Credential Manager.
- Open it.
- Select Windows Credentials.
- Locate credentials associated with the network drive.
- Click the entry.
- Select Remove.
This prevents Windows from automatically reusing old login information.
Method 9: Verify That the Drive Has Been Removed
After disconnecting a drive, verify that the process completed successfully.
Steps:
- Open File Explorer.
- Click This PC.
- Review the list of drives.
The disconnected network drive should no longer appear.
You can also run:
net use
Any removed drives should no longer be listed among active network connections.
Method 10: Reconnect the Drive Later if Needed
Disconnecting a network drive does not permanently remove access to the shared folder.
If you need the drive again:
Steps:
- Open File Explorer.
- Click This PC.
- Select Map Network Drive.
- Enter the network path.
- Choose a drive letter.
- Click Finish.
The drive can be restored at any time provided the shared resource remains available.
Frequently Asked Questions
Does disconnecting a network drive delete files?
No. Disconnecting only removes the mapped connection from your computer. Files remain stored on the remote computer, server, or NAS device.
Why does a disconnected drive reappear after restarting?
The drive was likely configured with Reconnect at Sign-in. Removing the mapping completely should prevent it from returning.
Can I disconnect all network drives at once?
Yes. The command:
net use * /delete
removes all mapped network drives simultaneously.
What happens if the network drive is offline?
You can still remove the mapping using File Explorer or the net use command.
Can I reconnect a disconnected network drive later?
Yes. You can map the drive again at any time using its network path.
Final Thoughts
Disconnecting a network drive in Windows 11 is a simple task that helps keep your system organized and free of outdated network connections. Whether you’re removing an unused shared folder, troubleshooting connection problems, switching networks, or cleaning up File Explorer, Windows provides several easy ways to disconnect mapped drives.
Most users can remove network drives directly through File Explorer, while advanced users may prefer Command Prompt or Windows Terminal for faster management. Additionally, removing old credentials and persistent mappings can help prevent future connection issues.
By following the methods outlined in this guide, you can efficiently manage mapped network drives in Windows 11 and maintain a cleaner, more organized network environment.


