Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

How do I wipe the music database of Rhythmbox? I have imported lots of music into Rhythmbox. Now I want Rhythmbox to forget everything that I've imported.

share|improve this question
Related –  N.N. Aug 8 '11 at 17:23
Incredible that after all this time this feature is still missing from Rhythmbox! –  HDave Sep 18 '13 at 13:34

1 Answer 1

up vote 26 down vote accepted

Close Rhythmbox and delete the Rhythmbox database in ~/.local/share/rhythmbox/rhythmdb.xml.

If you also want Rhythmbox to forget your library paths (the directories where it automatically looks for music), then you need to delete them from dconf:

gsettings set org.gnome.rhythmbox.rhythmdb locations "['file:///dev/null']"

You can then set new paths in the Rhythmbox GUI, under Edit -> Preferences -> Music.

(Note that

gsettings reset org.gnome.rhythmbox.rhythmdb locations

does not work correctly, since then Rhythmbox tries to be "smart" and uses your home directory as a default value. Using /dev/null above prevents this; alternatively you could directly set the library paths using gsettings set).

share|improve this answer
I would appreciate that. Note that it was not me that downvoted your answer. Your answer needs more details to be a good one but does not deserve a downvote. –  N.N. Aug 8 '11 at 20:53
Hi, if Roland Taylor's answer is correct, and it is, then the Rhythmbox database file's name is rhythmdb.xml. Yes? –  grahammechanical Aug 10 '11 at 1:05
@RolandTaylor Your answer is correct for my system except for one tiny detail. The path should be .local/share/rhythmbox/rhythmdb.xml (the directory is called "rhythmbox" and not "Rhythmbox"). –  N.N. Aug 15 '11 at 17:34
Warning: Deleting this file will also delete your radio station data! If you really want to do this, back it up elsewhere first, and then re-add the radio station entries. As I believe these should be separated, I've filed a but about this. Please mark this bug as affecting you (if it bothers you as much as it does me): –  colan Mar 11 '12 at 3:02
This only half worked for me: I deleted the file multiple times but on each restart Rhythmbox remembered my library paths. Then I purged and reinstalled Rhythmbox. After that it still magically remembered the last path I had added, but had forgotten the ones I wanted to erase. Not sure how it's keeping the paths when I erase the .xml file??? –  ntc2 Jul 4 '13 at 18:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.