Cache files safe to delete

I am on Linux Mint Cinnamon 20.2 and am writing a Python script to, among other things, delete unneeded files generated by Brave. My question is what are the cache folders that are safe to purge? I have found a few (maybe all) that fit the bill, but want to know if there are more. Also, in these folders, are there any directories that should be kept? Here is what I believe to be “useless” cache folders:

~/.config/BraveSoftware/Brave-Browser/ShaderCache
~/.config/BraveSoftware/Brave-Browser/Default/File System
~/.config/BraveSoftware/Brave-Browser/Default/Service Worker
~/.config/BraveSoftware/Brave-Browser/Default/GPUCache
~/.cache/BraveSoftware/Brave-Browser/Default/Cache
~/.cache/BraveSoftware/Brave-Browser/Default/Code Cache

Does that look right, and are there more?

Why not just use ‘Clear browsing data?’ brave://settings/clearBrowserData

Several reasons. The biggest one is because I don’t want to do it that way.

Hopefully someone else has an direct answer to my question.

Maybe I can ping the developers…

Solid reasoning. Considering Brave is privacy-oriented I would expect that it deletes as much as is reasonable to call “safe” and practical for continued use of the profile, but YMMV and of course this could change over time. If you do get a more direct answer elsewhere maybe you can contribute it back here! Good luck.

1 Like

By the way, thanks for the input, Jim. If I uncover any information, I will post back.

It’s better to do within the browser via brave://settings/clearBrowserData

Noted. Thanks. I’ll continue with what I’m doing though.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.