Removing folders does not remove shares unless an installer removed them, but just deleting folders will not, share information is stored in the registry.
You can export the following key and then import it to reconfigure all shares and share permissions on another server. NTFS permissions will need to be reapplied.
HKLM\SYSTEM\CurrentControlSet\Services\Lanmanserver\Shares
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''