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?

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    15
    ·
    11 months ago

    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
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      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

      • GreyBeard@lemmy.one
        link
        fedilink
        arrow-up
        24
        ·
        11 months ago

        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.