On Windows 11, the file-sharing feature lets you share virtually any type of content (such as documents, pictures, videos, etc.) with other users in the network, removing the extra steps to email files or using a USB flash drive.

Although it’s a convenient feature, you may need to stop sharing a folder for whatever reason. Windows 11 has multiple ways to turn off sharing file sharing to remove the shared folder from the network using File Explorer, Command Prompt, and Computer Management if that day comes.

In this guide, you will learn the steps to stop sharing a network folder on Windows 11.

  • Stop sharing folder on Windows 11 with File Explorer
  • Stop sharing folder on Windows 11 with Computer Management
  • Stop sharing folder on Windows 11 with Command Prompt
  • Stop sharing folder on Windows 11 with PowerShell

Stop sharing folder on Windows 11 with File Explorer

To stop sharing a network folder on Windows 11, use these steps:

  • Open File Explorer on Windows 11.
  • Browse to the folder location.
  • Right-click the folder and click on Show more options.
  • Select the “Give access to” menu and choose the Remove access option.
  • Click the “Stop sharing” option to remove the shared folder from the network on Windows 11.

Once you complete the steps, the folder and its contents will no longer be available in the network on Windows 11.

Open File Explorer on Windows 11.

Browse to the folder location.

Right-click the folder and click on Show more options.

Select the “Give access to” menu and choose the Remove access option.

Click the “Stop sharing” option to remove the shared folder from the network on Windows 11.

Stop sharing folder on Windows 11 with Computer Management

To turn off file sharing for any folder with Computer Management, use these steps:

  • Open Start.
  • Search for Computer Management and click the top result to open the console.
  • Expand the Shared Folders branch from the left pane.
  • Click the Shares item.
  • Right-click the folder and select the “Stop Sharing” option to remove the folder from the network.
  • Click the Yes button.

After you complete the steps, file-sharing will turn off for that particular folder share on Windows 11.

Open Start.

Search for Computer Management and click the top result to open the console.

Expand the Shared Folders branch from the left pane.

Click the Shares item.

Right-click the folder and select the “Stop Sharing” option to remove the folder from the network.

Click the Yes button.

Although you can stop sharing a folder within the folder’s location, using Computer Management is the best option because it allows you to see and control the shares from one place.

Stop sharing folder on Windows with Command Prompt

To stop a shared folder with Command Prompt on Windows 11, use these steps:

  • Open Start.
  • Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  • Type the following command to see the shared folders on Windows 11 and press Enter:
  • net share
  • Type the following command to stop sharing a specific folder with Command Prompt and press Enter:
  • net share myShare /delete
  • In the command, change myShare for the name of the shared folder.

After you complete the steps, the specified folder will stop being accessible from the network.

Search for Command Prompt, right-click the top result, and select the Run as administrator option.

Type the following command to see the shared folders on Windows 11 and press Enter:

net share

Type the following command to stop sharing a specific folder with Command Prompt and press Enter:

net share myShare /delete

In the command, change myShare for the name of the shared folder.

Stop sharing folder on Windows with PowerShell

To stop sharing a folder with PowerShell commands, use these steps:

  • Open Start.
  • Search for PowerShell, right-click the top result, and select the Run as administrator option.
  • Type the following command to see the shared folders on Windows 11 and press Enter:
  • Get-SmbShare
  • Type the following command to stop sharing a specific folder with PowerShell and press Enter:
  • Remove-SmbShare -Name “myShare”
  • In the command, change myShare for the name of the shared folder.
  • Type A and press Enter to confirm.

Once you complete the steps, the PowerShell command will stop sharing the folder in the network.

Search for PowerShell, right-click the top result, and select the Run as administrator option.

Get-SmbShare

Type the following command to stop sharing a specific folder with PowerShell and press Enter:

Remove-SmbShare -Name “myShare”

Type A and press Enter to confirm.