If you have a folder containing multiple subfolders which are shared and you want to unshare them. Go to the folder and use this:
for /d %v in (*) do net share “%v” /delete
If you have a folder containing multiple subfolders which are shared and you want to unshare them. Go to the folder and use this:
for /d %v in (*) do net share “%v” /delete