Clear .cache Tracker directory in Ubuntu?

I created a partition for Ubuntu, and I just ran out of space a couple of days ago.

I used the Disk Usage Analyzer and I realized that for some reason the directory /home/.cache uses up a lot of disk space; specifically the tracker folder. What is recommended to do in order to prevent this cache and tracker folder to grow so much?


Solution 1:

You can "pause" the Gnome Tracker by setting the configuration option org.freedesktop.Tracker.Miner.Files.low-disk-space-limit used by tracker-miner-fs.

Values indicate if we pause indexing at a percentage of low disk space (0-100% or -1 to disable the check entirely, 3 being the default value).

Open a terminal (Ctrl+Alt+t) and type the following command to stop the tracker at 1%:

gsettings set org.freedesktop.Tracker.Miner.Files low-disk-space-limit 1

Source.