This question already has an answer here:

Nautilus has some bookmarks in the left-hand bar by default. I do not store any music or videos on my computer, and would like those book marks to disappear. How can I make this happen? The linked question has not been updated to include 16.04 and the answers there do not include the fact that the file in ~/.config/ gets re-written upon log-in.

marked as duplicate by Ron, mchid, RobotHumans, Byte Commander, Eric Carvalho Apr 25 '16 at 18:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The is no setting for this in Nautilus preferences or gesettings. Instead, the default bookarks are hard-coded be built from ~/.config/user-dirs.dirs.

It's not enough to just edit~/.config/user-dirs.dirs, however, since the directory list is rebuilt on login from /etc/xdg/user-dirs.defaults.

The solution is to comment out the directories that you do not want to show in Nautilus from both user-dir files. After logging out and back in, the unwanted bookmarks go away.

Testing showed that you need to edit both files. Only editing one or the other was not enough.

The easiest way to edit the file in /etc is to use sudo with a textual mode editor, such as sudo nano /etc/xdg/user-dirs.defaults.