voidx@futurology.todayOPtoLemmy Support@lemmy.ml•Does pictrs cache just thumbnails or full size images from federated instances?English
1·
1 year agodeleted by creator
deleted by creator
I was talking about the storage space on server, not on the user side! Sorry if I wasn’t clear.
Doesn’t look like there’s a way to clean it manually right now, so buckle up!
There is an API DELETE /internal/variants
in pictrs to clear out variants of generated images. However it only cleared out a few megabytes in our case.
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 thedelete_token
, seems like it’s available only during image upload.