I deleted the music folder in Home, but on the left is still the shortcut. I cannot find a way to delete that shortcut? How do I delete that?
There are two files that you need to edit:
Edit the first in a text editor of your choice and comment out the shortcut(s) you don't want. You can do this by putting a
# at the start of the line.
Then edit the second file in a text editor of your choice via
sudo, commenting out the shortcut(s) you don't want.
After both files are edited, log out and back in again to apply the change.
To remove the "Music" folder in the left bar of Files (nautilus), set your MUSIC directory to be your home folder:
xdg-user-dirs-update --set MUSIC ~
This sets your Music folder to be the same as Home. That will cause Nautilus not to include it any more.
Other apps relying on XDG special folders may also be affected. For example, Gnome Music, if you use that, will now consider your Home folder to be the default storage for music. Unfortunately, however, there is no way to remove Music from Files without wider side effects.
Instead, you could edit
~/.config/user-dirs.dirs yourself if you prefer. Change
It is not a good approach to remove the folder by deleting or commenting out the line for the folder in
~/.config/user-dirs.dirs. If you do that, the missing folder would be added again on your next login, based on the default folders defined in
/etc/xdg/user-dirs.defaults. As a result, to make the change persistent, you would be required to edit the system file
/etc/xdg/user-dirs.defaults which 1) requires you to be administrator and 2) affect any other users of the system (and they may not want that).