My .cache folder is occupying over 6GB of space. It is safe to delete it? The contents of my .cache are:
bazel dconf fontconfig jedi matplotlib motd.legal-displayed pip
My .cache folder is occupying over 6GB of space. It is safe to delete it? The contents of my .cache are:
bazel dconf fontconfig jedi matplotlib motd.legal-displayed pip
Yes you can delete all of .cache with no long term detrimental effects.
If your .cache is growing large, it might be better to look at the contents and try to determine what application is making it large and re-configure a bad acting application.
In some case for application's custom configuration may cause problem.For the reason it is bad habit to delete things you do not understand in your home directory, back it up or use a test account.
so have backup and then try
mv .cache .cache_backup
According to XDG specifications:
$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
So in other words, it is safe to remove items from it. Most applications only store there data that should be trivial (and of course the emphasis is on should, because it is up to the application to handle what they put in the directory). For instance, Google Chrome and Chromium browsers cache web pages and media in that directory, but significant configuration files are stored in /home/<username>/.config/google-chrome/default
. In some cases it's even desirable to remove data in ~/.cache
directory, for example for pip to install desired version of package.
~/.cache/dconf
though – Sergiy Kolodyazhnyy Feb 25 '19 at 10:29~/.cache
there should be only temporary data, not critical in any way. More critical would be in~/.config
, however I am making a guess that ~/.cache/dconfmay contain very recent changes that haven't been added to
~/.config` yet. Again, it shouldn't contain critical information and I don't have solid evidence, just a suggestion – Sergiy Kolodyazhnyy Feb 25 '19 at 12:21