Stop sharing a folder / directory
1. Press Windows + R, type compmgmt.msc and click OK;
2. In the left pane of the window, expand “Shared folders” and click “Shares”;
3. The shared folders will be displayed right next to it. Right-click on the desired folder and choose "Stop sharing".