fb
Homepage 5 How-to Articles 5 How to Delete Network Share Windows OS

How to Delete Network Share Windows OS

Manage remote endpoints, deploy software and patches with Action1 cloud RMM solution.

Sign up and use free on up to 50 endpoints with no functionality limits or expiration.



July 19, 2019

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, I’ll show you how to delete network share Windows.

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.

Step 1 to Delete Network Share Windows is to Use Windows File Explorer

2. Delete a Network Share Windows 10

To delete a drive mapping toward a network location, right-click on it and select Disconnect.

Delete a Network Share Windows 10

3. Remove a Network Share Windows 10

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.

Remove a Network Share Windows 10

4. 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.

Step 4 to Remove a Network Share Windows is to Use Command Prompt

5. 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.

Step 5 to Remove a Network Share Windows is to Use Windows/File Explorer

6. If You’re Using Windows 7, You Must Also Confirm That You Want to Remove the Selected Item

When 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.

Remove the selected item

7. 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.

Use the Command Prompt to Remove a Network Location Mapping from Your Pc by Erasing Its Shortcut

8. Use the Del (Delete) Command to Remove the Shortcut for the Network Mapping

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.

Use the Del (Delete) Command to Remove the Shortcut for the Network Mapping

Consider Using Action1 to Delete Network Share if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 is a cloud-based platform for patch management, software deployment, remote desktop, software/hardware inventory, and endpoint management.

Related Articles

How To Delete User Profiles Remotely with PowerShell

When a user logs onto the computer for the first time (not via the network to access shared folders or printers), Windows creates a user profile. Among its contents are the NTUSER.DAT file (user profile settings), user-specific folders (My Documents, Desktop, etc.),...

About Action1 RMM

Action1 RMM is a cloud-based IT solution for remote monitoring and management, patching, and remote support.

Start your free two-week trial of Action1, or use RMM tools for free forever on 50 endpoints with no functionality limitations!



0 Comments

Submit a Comment

Your email address will not be published.

cloud patch management solutions action1

MSP Solution

Centralize endpoint management and boost efficiency of IT service delivery.

automated server patch management action compliance

Patch Management

Identify and deploy missing OS and third-party software updates.

cloud software deployment tools windows

Software Deployment

Distribute software and updates across managed endpoints.

software distribution tools software inventory action1

IT Asset Inventory

Keep a detailed inventory and manage hardware and software assets.

web client remote desktop

Remote Desktop

Support users via seamless remote desktop connection.

web based rdp client

Unattended Access

Provide administrative support and manage remote devices.

automated patch management action1

Endpoint Management

Run PowerShell, custom scripts, reboot computers and restart services.

API integrations action1

RESTful API

Integrate Action1 RMM to your IT ecosystem.

computer inventory tool for compliance

Reports and Alerts

Conduct endpoint security audits with comprehensive reporting.