How to Clean Electron Cache
from sandayle@iusearchlinux.fyi to linux@lemmy.ml on 07 Dec 2023 11:51
https://iusearchlinux.fyi/post/2701597

Electron folder under /home/cache has reached 1.3GB.

I want to clean it but I don’t know how or would be wrong?

Is there a command like yarn cache clean?

#linux

threaded - newest

Strit@lemmy.linuxuserspace.show on 07 Dec 2023 12:13 collapse

It’s a cache. It’s meant to be deleted from time to time, especially if the application is not good at it by itself.

So simply delete the folder. Anything electron will need after that will be re-downloaded when the application is run again.

sandayle@iusearchlinux.fyi on 07 Dec 2023 12:29 next collapse

Thank you.

greybeard@lemmy.one on 07 Dec 2023 12:53 collapse

General trick for unknowns like this, you can rename a folder, open the applications. If they work, it is likely safe to delete that folder. If not, you rename that folder back. A simple way to test removing something non-destructively.

sandayle@iusearchlinux.fyi on 07 Dec 2023 13:03 next collapse

Nice trick, thanks.

empireOfLove@lemmy.one on 07 Dec 2023 15:36 collapse

folder.old

then it’s all fun and games till you’ve been fucking with it for 3 hours and you get to folder.old.old.old.old.old

greybeard@lemmy.one on 07 Dec 2023 16:46 next collapse

I’ve been there.

turbowafflz@lemmy.world on 07 Dec 2023 16:58 collapse

I always do folder.save, then folder.oldsave, then folder.oldoldsave. It isn’t any better but it is slightly different

bustrpoindextr@lemmy.world on 07 Dec 2023 22:42 collapse

No love for folder.bak?

IlliteratiDomine@infosec.pub on 08 Dec 2023 15:56 collapse

.bak gang rise up.

sorrybookbroke@sh.itjust.works on 07 Dec 2023 21:54 collapse

You should delete the contents of the cache folder instead of the folder itself as sadly some apps will break pretty spectacularly if they can’t find the folder itself. Otherwise you’re entirely correct