Is there a cleaner for old Lemmy content?

I.E. delete images in the instance that are over X days old and aren't saved by a user?

If not, I will be writing one.

22 points · 9 comments · view on lemmy.world

9 Comments

BombOmOm@lemmy.world · 15 pts · 3y (3 replies)

Might also make sense to, if not delete them, mark them as old and move them to a different storage location/server. Would enable them to be put on, say a spinner, or on a lower-powered server with spinners.

fmstrat@lemmy.nowsci.com · 11 pts · 3y (1 reply)

And created. Will be making a new post for it, and look at moving to cold storage later. https://github.com/Fmstrat/lpp

BombOmOm@lemmy.world · 1 pts · 3y

That was some quick work. A+!

fmstrat@lemmy.nowsci.com · 6 pts · 3y

Good call. I'm about to look at methodologies now, first I'm posting a Community Seeder for new or small instances here momentarily. The purgePost API could work, but I'm going to need direct DB access to get a list of saved and commented on items for all users anyway, so this may be deeper. I'm

palitu@lemmy.perthchat.org · 3 pts · 3y (1 reply)

Hahah, I was just about to say that there is a post in selfhosted that will do this.

Nope, itsa you! Great job!

fmstrat@lemmy.nowsci.com · 1 pts · 3y

Thanks!

rs5th@lemmy.scottlabs.io · 2 pts · 3y (2 replies)

I’m pretty sure pict-rs only caches images for a week. The cache being thumbnails, etc for links that are posted on any instance federated with yours.

fmstrat@lemmy.nowsci.com · 2 pts · 3y (1 reply)

What makes you think this?

rs5th@lemmy.scottlabs.io · 2 pts · 3y

This setting in the pict-rs source. It was removed 4 days ago though, so maybe it’s no longer used? Unsure.