How to Delete a Network Shared Folder Using Command Prompt

Collection of structured data for analysis and processing.
Post Reply
Rina7RS
Posts: 577
Joined: Mon Dec 23, 2024 3:46 am

How to Delete a Network Shared Folder Using Command Prompt

Post by Rina7RS »

Net Share ShareOne=D:\Shared Grant:Subhan,FULL \Users:5
Create a shared folder with maximum concurrent users in command line.

Create a shared folder with maximum concurrent users in command line.

You can also delete a network share on your computer using Net Sharethe command. Note that this does not delete the folder itself, but only the shared folder you created. This means that sharing will be disabled, but the folder and its contents will remain.

You can use the name of that share and the full path to cameroon telegram data the folder to delete a network share, which makes both of the following syntaxes valid:

Net Share [ShareName] Delete
Net Share [PathToFolder] Delete
So I can use both of the following commands to remove the network share for the folder I created earlier:

Net Share ShareOne Delete
Net Share D:\Shared Delete
Delete a shared network folder using command line

Delete a shared network folder using command line

Alternatively, you can also delete a shared folder on a remote computer using the following command if you have sufficient permissions:

Net Share [ShareName] \\[RemotePCName] Delete
Conclusion
This post describes methods for viewing, creating, and deleting shared network folders using the command line. These methods work for Windows 7 and above operating systems.
Post Reply