How to Stop Sharing a Folder in Windows 11
In this article
To stop sharing a folder in Windows 11, right-click the folder, choose Show more options (or press Shift+F10), open Properties, go to the Sharing tab, click Advanced Sharing, clear Share this folder, and click OK. That removes the network share so other devices on your network can no longer reach the folder over File Explorer or a mapped drive. The files stay exactly where they are on your PC; only the network access is removed. Note that menu labels can differ slightly by Windows version, edition and region, so a word or two may not match your screen exactly, but the path is the same.
Stopping a share is different from changing permissions. Clearing the share removes the network entry entirely, while changing permissions keeps the folder shared but restricts who can open it. Use the full removal when you no longer want anyone on the network to see the folder at all.
What You'll Need
- A Windows 11 PC where you are signed in as an administrator, or can provide an administrator password when prompted. Standard accounts cannot change shared folder settings.
- The exact folder you want to unshare. If you are not sure which folders are shared, open Computer Management and look under System Tools > Shared Folders > Shares to see the list.
- Knowledge of whether anyone is currently using the folder. If a colleague has a file open from your PC, Windows may warn you before the share is removed.
Step-by-Step
- Open File Explorer and navigate to the folder you want to stop sharing. You can use the address bar or the left-hand navigation pane.
- Right-click the folder and choose Show more options at the bottom of the context menu. Windows 11 hides some classic commands behind this entry. If you prefer, select the folder and press Shift+F10 to open the same full menu.
- Click Properties.
- Switch to the Sharing tab. If the folder is currently shared, you will see a message such as "Shared with" plus the names or groups that have access, and a Share... button.
- Click Advanced Sharing. This opens a separate dialog with the checkbox that controls the actual network share.
- Clear the checkbox labelled Share this folder. The share name and comment fields will grey out.
- Click Apply, then OK to close the Advanced Sharing dialog.
- Click OK again to close the folder's Properties window. The Sharing tab should now read "Not Shared" when you reopen it.
- Confirm the change from another device on the same network. Open File Explorer, type \\computername (two backslashes followed by your PC's name) in the address bar, and check that the folder no longer appears. If you mapped a drive letter to it, that drive will now show as disconnected.
If the folder was shared through the simple Share... button rather than Advanced Sharing, you can also open that dialog, right-click each listed user or group, and choose Remove. However, removing everyone from the list does not always remove the underlying share, so finish with the Advanced Sharing step above to be certain.
Common Mistakes
- Only removing permissions. Removing names from the Share dialog can leave the share active for administrators or for the Everyone group. Clear Share this folder to remove it completely.
- Unsharing a shortcut instead of the real folder. If you right-click a shortcut, the Sharing tab may not appear or may point elsewhere. Open the folder's actual location first.
- Forgetting subfolders. Shares are per folder. Unsharing a parent folder does not automatically unshare a child folder that was shared separately. Check the Shares list in Computer Management.
- Assuming the files are deleted. Unsharing does not move, delete or encrypt anything. The folder remains on your drive for your own use.
- Ignoring open files. If someone has a document open from the share, Windows may block the change or close their connection abruptly. Ask them to save and close first.
- Confusing OneDrive or network drives with local shares. A folder synced to OneDrive is shared through OneDrive's own settings, not the Windows Sharing tab. Likewise, a mapped network drive belongs to another PC, so you cannot unshare it from your machine.
Tips
- Use Computer Management > Shared Folders > Shares to audit every share on the PC in one place. The Open Files section shows who is connected right now.
- If you only want to pause access temporarily, disable the network adapter or turn off network discovery instead of removing the share, then re-enable it later.
- After unsharing, consider turning off Public folder sharing in Control Panel > Network and Sharing Center > Advanced sharing settings if you do not use it. That closes a common accidental exposure.
- Keep a note of the share name before removing it, in case you need to recreate it later with the same path for mapped drives.
- If you use a password-protected home network, remember that unsharing does not change your Windows account password. Anyone who already copied files still has those copies.
Troubleshooting
If the folder still appears on other devices after you clear the checkbox, the change may not have propagated yet. Close and reopen File Explorer on the other device, or disconnect and reconnect the mapped drive. Cached credentials can also keep a share looking active; sign out and back in on the client device.
If the Sharing tab is missing entirely, the folder may be on a drive formatted with a file system that does not support sharing, or it may be a system-protected location. Try a folder on your main drive to confirm the tab appears there.
If Windows says you do not have permission, sign in with an administrator account. On a work or school PC, group policy may control sharing, and you may need to contact your IT administrator rather than changing it yourself.
If the share reappears after a restart, check for a scheduled task or a sync tool that recreates it. Review startup apps in Settings > Apps > Startup and disable anything that manages network folders.
If you cannot reach the PC at all after unsharing, that is expected for that folder, but other shares should still work. If nothing is reachable, check that network discovery and file and printer sharing are still enabled in Advanced sharing settings.
Frequently Asked Questions
Does unsharing delete the folder or its files?
No. The files remain on your drive exactly as they were. Only network access is removed.
Will people who already copied files lose them?
No. Unsharing stops future access, but any file already downloaded or copied to another device stays there.
Can I unshare a folder without administrator rights?
Usually not. Changing share settings requires an administrator account or an administrator password prompt.
How do I see all folders currently shared on my PC?
Open Computer Management and go to System Tools > Shared Folders > Shares. The list shows every active share and its path.
Does this stop OneDrive sharing too?
No. OneDrive links are managed in OneDrive itself. Use the OneDrive settings or the file's sharing menu to stop those links.
Can I share the folder again later?
Yes. Repeat the steps and tick Share this folder, then set the share name and permissions again.