this post was submitted on 07 Dec 2023
14 points (93.8% liked)

Linux

48130 readers
554 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] Strit@lemmy.linuxuserspace.show 15 points 11 months ago (2 children)

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.

[–] sorrybookbroke@sh.itjust.works 7 points 11 months ago* (last edited 11 months ago)

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

[–] sandayle@iusearchlinux.fyi 5 points 11 months ago (1 children)
[–] greybeard@lemmy.one 24 points 11 months ago (1 children)

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 2 points 11 months ago

Nice trick, thanks.