February 9, 201313 yr I had two shares I no longer wanted but unRAID refused to remove using the suggested method (ie, clear out the share then delete the share name in the Web GUI). I tried using rm -r * in the terminal in the correct folder, which appeared to work as once i'd listed the directory's contents (and hidden files) it showed nothing - but still in the Web GUI the share wasn't listed as empty. So I went ahead and deleted the share in the command line using rm /mnt/user/deleteme (or something like that - I'm a bit of a trial-and-error noob) rebooted my server, and the share is no longer listed in the Shares list. So I appear to have done it... but I have a niggling feeling that this wasn't the best way of doing it. Might I have cocked something up, and/or are there likely to be any other files left behind I need to tweak to remove all traces of the shares I deleted by this method? I notice in the /boot/config/shares folder it still lists the deleted shares' cfg files...
February 9, 201313 yr Unless you delete the share from the WebGUI, unRAID will not delete the <share>.cfg file, but won't load it either, so it's safe to remove it or leave it there. Next time you can use "find" to delete files, since it export also all hidden files; "rm" doesn't remove them. $ find /mnt/user/Share -exec rm -rf '{}' \;
February 9, 201313 yr Author Thanks gfjardim! And thanks for the command suggestion. So does the ls -a command not list hidden files properly? Cos I tried that in both shared folders and they came up empty (well, they showed "." and "..").
February 9, 201313 yr What you did was fine. rm -r on the share will get rid of it. Basically, on array starting unRAID reads each disk and every top level directory is turned into a user share. So, delete the share directory off every disk and the share goes away. You can delete the config file if you want to get rid of all traces it existed. All the file remaining means is that if you created a directory on any disk with that same share name it would appear as a user share again with the configuration that was previously set.
February 11, 201313 yr Author Thanks lionelhutz. I'm confused though - I set up a share called "buffalo" through the cmd line while trying to mount an external drive with Snap (it didn't work in the end because it was formatted in ext4). The share doesn't appear in the unRAID web GUI, yet it's there when I look at my TOWER on my network (through Windows anyway). I don't think I've rebooted my server since I tried this though so perhaps that's why it's not gone?
Archived
This topic is now archived and is closed to further replies.