Gnome creates and stores thumbnails when you view a directory containing images or videos. These thumbnails are never deleted, even though you might not ever need them again. Thousands of these cached files could take up hundreds of megabytes of disk space.
Solution
The following script will delete the cached thumbnails older than n days, with n = 30 in this case.
test -d ~/.thumbnails && find ~/.thumbnails -type f -atime +30 -exec rm "{}" +The same script could be scheduled to run periodically by adding something similar to this in crontab. In the following example, the command would be run once a month on the specified date and time:
17 03 10 * * test -f ~/.thumbnails && find ~/.thumbnails -type f -atime +30 -exec rm "{}" +Other Considerations
On my box (Core 2 Duo, amd64, 4GB, 80GB, 5400rpm) it took about 0.2 seconds to delete 1500 tiny cached images. This number could vary wildly, but is very unlikely to hog the system resources in any case.



