@RazielKanos said in deleting old crap:
Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?
tootctl media remove and tootctl statuses remove are run in the background with Mastodon v4 (settings can be found on the administration page).
What I am running every night (via cron job) is:
/app/code/bin/tootctl media remove-orphans
/app/code/bin/tootctl preview-cards remove --days=7
/app/code/bin/tootctl cache clear
/app/code/bin/tootctl accounts prune
and now with v4.1:
/app/code/bin/tootctl media remove --prune-profiles --days 7
My instance has around 40-50 users and is connected to 8 public relays.
It is about 50 GB in size now (it was 80-90 GB with v4.0).
Hope that helps.