Ubuntu – How to clean up the dconf database


Dconf is pretty young, yet my database is already a mess with lots of "schema-less" keys. Is there a way to do some cleaning up, or would I need to start from scratch (by removing ~/.config/dconf/user I guess)?

Best Answer

This is possible using the dconf reset command, though it's not clear if that's a side-effect of a bug.

  • For a single key:

    dconf reset "/path/to/the/key"

    Must not end with a /.

  • For a whole path:

    dconf reset -f "/path/to/the/path/"

    Must end with a /.

If you do this while having dconf-editor opened, it will likely crash.