• Meldrik@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I have about 20GB of cached images on my instance… Wish there was an easy way to delete it.

    • voidxOPA
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      Yeah. I guess we could fetch all image ids from the database excluding those uploaded to our local instance, and loop them through the DELETE /image/delete/{delete_token}/{file} API. But I’ve no idea how to get the delete_token, seems like it’s available only during image upload.

    • voidxOPA
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Doesn’t look like there’s a way to clean it manually right now, so buckle up!

      • user@lemmy.one
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        haha. I went to settings on my android and cleared up all my cache 😁

        • voidxOPA
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          I was talking about the storage space on server, not on the user side! Sorry if I wasn’t clear.