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
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.