This forum has been archived. All content is frozen. Please use KDE Discuss instead.

What are the consequences if I delete KDE cache files

Tags: None
(comma "," separated)
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
What are the consequences if I delete KDE cache files on /var/tmp/kdecache dir? Some of the files are large and I need some diskspace....

Regards,
ethereal1m
User avatar
google01103
Manager
Posts
6668
Karma
25
Just deleted mine and everything is still working fine (after all it is a tmp directory). Some files/dir's have already been recreated and I'm sure others will be as needed. Fyi ~/.kde4/cache-xxxx links to it

Question is overtime how much space deleted here won't be recreated - and that I am unsure of

Did you look at your /tmp and /tmp/log directories?

In your distro are packages installed deleted after installation?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
You can use kdirstat to see how the space on your partitions is used http://kdirstat.sourceforge.net/


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
google01103 wrote:Just deleted mine and everything is still working fine
Did you look at your /tmp and /tmp/log directories?

In your distro are packages installed deleted after installation?


My log files are not that big. Regarding to whether my packages are deleted, I think they are but need to double check...

thanks for reply
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
There are no consequences to the deletion of these at all, so long as it is done outside of KDE. You risk applications crashing, etc. if it is done with KDE running.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Geremia
Registered Member
Posts
17
Karma
0
I deleted my user files and directories of /tmp/, and now new KDE apps won't start. I don't know why. I haven't tried rebooting to see if it just needs to recreate some init files in /tmp/?
User avatar
google01103
Manager
Posts
6668
Karma
25
define "user files"?

if you read the previous post to your's you would know not to do this while KDE was running

suggest you restart KDE


OpenSuse Leap 42.1 x64, Plasma 5.x

luebking
Karma
0
It's generally safe to *delete* files - if they're currently in use, they'll be "secretely" kept until the last process releases them.
It is on the other hand *NOT* safe to override files with random junk (what bleachbit offers) - any process that has them open will unexpectidly read that junk and cache files are often binaries with fix structure assumptions (memory cache)

Just deleting random temporary files can affect the system functionality - deleting /tmp/* will also delete /tmp/ksocket-`whoami` which holds sockets that processes use for communication.

Rule of thumb:
DO NOT DELETE SOCKETS= *ever* - unless you know what you're doing ;-)

/tmp is nowadays usually on tmpfs, thus wiped on reboot. Required files are re-created on boot and session login.
/var/tmp is usually persistent. It's supposed to be safe to delete /var/tmp/kdecache-`whoami` any time - the required caches will be regenerated. Biggest space "wasters" there will be plasma_theme_* files and only the theme currently in use is really required anyway.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]