on CMD : "Net Share"
Get the physical URLs
gci -Directory -Path F:/ -directory | where{ $_.Name -like "123"} | Remove-Item
"address1","address2","adddress3" | gci -Directory -Path F:/ -directory | where{ $_.Name -like "123"} | Remove-Item
Where addressN is the physical paths that you got on the net share (just the root folders)
You may want User to log off while you do this. This will help inform you on using your script