Simply go to File Explorer, then 'This PC', then right-click the drive and choose 'Disconnect'. Don't worry, no files are being selected, just the reference to the folder. You have also now freed up the drive letter you allocated to the share.