this post was submitted on 22 Aug 2023
17 points (94.7% liked)

Lemmy Support

4651 readers
17 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

As it is currently, the storage space on server can quickly fill up if cached images are not cleaned regularly.
I've tried to find if lemmy runs any kind of schedule for this, but doesn't seem like it from the code:
https://github.com/LemmyNet/lemmy/blob/main/src/scheduled_tasks.rs

top 7 comments
sorted by: hot top controversial new old
[–] meldrik@lemmy.wtf 1 points 1 year ago (1 children)

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

[–] voidx@futurology.today 4 points 1 year ago* (last edited 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.

[–] user@lemmy.one 0 points 1 year ago (1 children)
[–] voidx@futurology.today 1 points 1 year ago (1 children)

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

[–] user@lemmy.one 1 points 1 year ago (1 children)

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

[–] voidx@futurology.today 4 points 1 year ago (1 children)

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

[–] user@lemmy.one 2 points 1 year ago