365bet网页版

在 Windows 10 中删除映射网络驱动器的 4 种方法

发布时间 2026-01-30 00:57:19 作者 admin 阅读 7426

How to delete a mapped network drive from Windows (5 ways)

Mаpрing nеtwork driνeѕ and other locations on your Windows laptop or computer is a good wаy of keeping remote datа at hand in your local area network. However, at some point, you might also want to delеte some of these drive mappings and keep only thoѕе that you regularlу use. In this article, wе show you exactly how to do that. Here are fivе mеthods for deleting mapped drives and network locations from Windowѕ 10 or Windows 11:

1. How to delete a mapped network drive from Windows 10 using File Explorer

If you’re using Windows 10 and you need to delete a previously created drive mapping, the first thing you must do is open File Explorer. Then, on the left side of the window, select This PC. All of the mapped drives are available in the Network Locations group, beneath your solid-state drive, hard-disk drives, and other similar devices such as CD/DVD units or USB memory sticks.

The mapped network drives are shown in File Explorer

To delete a drive mapping toward a network location, right-click (or press-and-hold) on it and select Disconnect.

Disconnect a mapped network drive from Windows 10

To remove a drive mapping towards a network folder or FTP site, select it and press Delete on your keyboard. Alternatively, you could also right-click (or press-and-hold) on it and choose Delete in the context menu.

Delete a network location from Windows 10

The deleted mapped drives then stop showing. If you want to restore them, you have to recreate them, using this guide: How to map FTP drives, network drives, and web shares, in Windows 10.

2. How to delete a mapped network drive from Windows 11 using File Explorer

The steps to remove a network drive from Windows 11 using File Explorer are similar to the ones in Windows 10. Start by opening File Explorer (Windows + E) and, on the navigation section from the left of the window, select This PC. Then, you’ll see all your mapped network drives listed under Network Locations.

Mapped network drives are listed in Windows 11's File Explorer

To unmap a network drive from Windows 11, select it, click or tap on the … (See more) button from the top toolbar, and press “Disconnect network drive” from the menu displayed.

How to remove a mapped network drive from Windows 11

Alternatively, you can also use File Explorer’s context menus to remove a network drive from Windows 11. First, right-click or press-and-hold on the mapped network drive that you want to disconnect and select “Show more options.”

Show more options in the context menu

Then, in the expanded context menu shown, select Disconnect to remove the mapped network drive.

Disconnect a network drive from Windows 11

If what you wanted was to delete a network location mapped towards a network folder or FTP site, things couldn’t be simpler. Select it, and either press Delete on your keyboard or the Delete button from the top toolbar of File Explorer. Alternatively, you can also right-click (press-and-hold) on the network location and click or tap Delete in the context menu.

How to remove a network location from Windows 11

Once you delete a mapped drive or network location, File Explorer no longer displays it. If you want them back, you’ll have to recreate them using this tutorial: How to map network drives and add FTP locations in Windows 11.

3. How to unmap a network drive in Command Prompt, PowerShell, or Terminal with the “net use /delete” command

If you prefer command-line environments, you can use the net use command to delete mapped network drives. Net use works in Command Prompt, PowerShell, and also in the new Terminal app, both in Windows 10 and Windows 11. Open CMD or the command-line interface you like best and run this command:

For example, I had a drive mapping to which I assigned the letter Z, so the command I needed to run to unmap the drive was:

Using the net use /delete command to remove a mapped network drive

Once you run the net use /delete command, you are informed that the mapped drive has been deleted successfully, and the network drive disappears immediately from File Explorer.

IMPORTANT: The net use /delete command only works for drive mappings that have a letter assigned. It doesn’t work for network location mappings such as FTP servers or web servers.

4. How to delete all mapped network drives with the “net use /delete” command

If you have more than one mapped network drive configured and you want to delete them all at once, you can use the same net use command to disconnect them all at once. Open Powershell, Windows Terminal, or start Command Prompt and run the following command:

Running the net use * /delete command to remove all the mapped network drives

CMD (or, depending on what you're using, Windows Terminal or PowerShell) then shows you all the active network connections that are going to be canceled. It might also ask whether you are sure that you want to continue. Type in Y if you do, or N if you don’t.

Typing Y to confirm the removal of all the mapped network drives

TIP: If you want to use the net use to disconnect all the mapped network drives, and you want to force the process to go on without asking for any confirmations, add the /y parameter to the command, like this:

5. How to remove a network location (FTP, web server) from Windows by erasing its shortcut

A network location mapping is a shortcut stored as a file on your Windows computer. If you can’t delete it using the first method we’ve shown, you can try others. One of them is to use File Explorer to delete its shortcut. Open File Explorer and navigate to

which is the same as

… where Your_User_Name is the name of your Windows user account.

The Windows folder where network location shortcuts are saved

In the Network Shortcuts folder, you can find all network location mappings. Select the ones you no longer want to use. Then, if you’re using Windows 10, right-click (or press-and-hold) on them and select Delete or press the Delete key on your keyboard.

How to unmap a network location by deleting its shortcut from Windows 10

In case you’re using Windows 11, select the network location(s) you want to unmap, and then press Delete on your keyboard. Alternatively, you can also right-click (or press-and-hold) on the network locations and select Delete in the context menu.

How to unmap a network location by deleting its shortcut from Windows 11

Regardless of whether you’re using Windows 11 or Windows 10, the selected network mappings are deleted immediately, without additional confirmation.

Troubleshoot network drives and locations that won’t go away

There are times when none of the methods we described above work as they should. What if you just cannot remove a disconnected network drive from Windows 10 or Windows 11? How do you unmap a drive in Windows in such a situation? Well, if you stumble upon such an issue, here are a few things you could try to disconnect and delete mapped drives:

If you disconnect a mapped network drive or delete a network location, but it doesn’t disappear from File Explorer, the reason might be that File Explorer didn’t get to refresh its contents. Try pressing the F5 key on your keyboard or click/tap on Refresh in the right-click menu inside File Explorer.

If you tried to remove a network mapping from your Windows 10 or Windows 11 PC, but you get an error about that location no longer being available, your Windows operating system is likely outdated. We’ve tested to see what happens when the PC with the mapped network drives and 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 illustrated in this article worked correctly.

Sometimes, even though you disconnected or deleted a network drive or location from your Windows PC, the operating system hangs and doesn’t remove these links on the fly. A good idea in such a situation would be for you to restart Windows. You can also restart the explorer.exe process by using Terminal, Powershell, or Command Prompt to run these two commands, one after the other:

Using taskkill to stop and then restart the explorer.exe process

Did you manage to remove all the mapped network drives you wanted?

As you can see from this article, there are quite a few alternatives to deleting drive mappings. The instructions above work on any Windows computer or device. Did you manage to delete every mapped network drive or location you wanted? If you have something to add to this guide, don’t hesitate to let me know in the comments section below.

相关推荐

女足世界杯徐阳 徐阳在女足世界杯中的表现

徐阳(女足世界杯) 徐阳,中国女子足球运动员,曾参加女足世界杯比赛。她以其出色的技术和坚韧的拼搏精神在比赛中展现出色的表现,为中

07-08 分类 best365官网登录入口

如诗如画, 真菌学家臧穆笔下的美丽中国

如诗如画, 真菌学家臧穆笔下的美丽中国 “水流湍急,两岸直壁矗立,铁杉、松树和槭树、椎树杂之。河面约25米阔度,水冲岩面,流浅岩底。

01-06 分类 365bet网页版

微信文件如何拷贝到u盘

在现代生活中,微信已成为我们日常沟通和文件传输的重要工具。然而,有时我们需要将微信上的文件拷贝到U盘以便在其他设备或场合使用。下

07-26 分类 365bet官网是多少

谒字的意思和解释

谒 yè ㄧㄝˋ 基本解释 ①拜见。例如~见。拜~。进~。 ②说明,陈述,告发。例如请~其故。 ③请求。例如~归。~医。 ④名帖:“使者惧

08-29 分类 365bet官网是多少

39款毒面膜名单品牌,毒面膜名单2023

市场上有很多种类的面膜,其中难免有无良商家为了追求高利润会生产一些不合格的面膜。所以仙女们在选择面膜的一定在正规渠道购买,同时

11-09 分类 365bet网页版