Cleaning up crud left over from earlier KDEs

I was noticing these old qt_QGfxShaderBuilder#.#.# cache folders under ~/.cache/plasmashell/

drwxr-xr-x. 3 mos mos  4096 Aug 12  2024 attica
drwxr-xr-x. 3 mos mos  4096 Aug 12  2024 knewstuff
drwxr-xr-x. 2 mos mos 49152 May  5 15:47 qmlcache
drwxr-xr-x. 2 mos mos  4096 May  5 15:03 qtpipelinecache-x86_64-little_endian-lp64
drwxr-xr-x. 2 mos mos  4096 Aug 12  2024 _qt_QGfxShaderBuilder_6.7.2
drwxr-xr-x. 2 mos mos  4096 Nov  1  2024 _qt_QGfxShaderBuilder_6.8.0
drwxr-xr-x. 2 mos mos  4096 Dec 14 16:49 _qt_QGfxShaderBuilder_6.8.1
drwxr-xr-x. 2 mos mos  4096 Feb  4 15:20 _qt_QGfxShaderBuilder_6.8.2
drwxr-xr-x. 2 mos mos  4096 Apr 25 17:27 _qt_QGfxShaderBuilder_6.9.0

My “kinfo” says I’m on

Qt Version: 6.9.0

so I suspect a lot of those folders can be removed. So for now I’ve removed

_qt_QGfxShaderBuilder_6.7.2
_qt_QGfxShaderBuilder_6.8.0
_qt_QGfxShaderBuilder_6.8.1

Leaving just 6.8.2 and 6.9.0 behind. I wanted to ask is there any reason to leave those old folders if I’m on KDE 6.3.4/QT 6.9.0?
Also in that “qmlcache” folder is a lot of data files that are older and which had file dates grouped similarly to those qt_QGfxShaderBuilder#.#.# folders. So I suspect those older files in qmlcache can be deleted too.

Is there a better way to do this? I suspect if I deleted some qt cache directory that still has some apps using it, it would be created again.

Updating my own post, I ran “rpm -qa qt6\*” and found every single package is 6.9.0 based. So I don’t think I have any need for the 6.8.2 cache so I removed that. Then I cleaned out the qmlcache/ so that all the files are 30 days or newer.

It would be nice if KDE has some kind of smart cleanup built in so caches don’t grow forever like Qt 6.7.2 caches on my 6.9.0 system

1 Like