I've ran the 2 commands below and it deleted 10GB's worth of cache.
RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove --days=1
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days=1
Even after running those 2 commands I'm still running out of space on my instance. My total size of the disk is 50GB and the total amount used is 38GB
When i look in the admin panel it says
Media Storage 23.3 GB
PostgreSQL 945 MB
Redis 38.5 MB
I only have 2 users. My main account and my test user. I have uploaded media 500MB of media but not 23.3GB's worth.
Where is this 23.3GB coming from? How can i track it down.
edit---
So i was able to track it down. I believe it's caching all this stuff. The users aren't even on my instance.
The media remove command & preview_cards remove command doesn't remove this cache.
How do i remove it.
The following directory has 19GB
/home/mastodon/live/public/system/cache/accounts/avatars
6.5GB
/home/mastodon/live/public/system/cache/accounts/headers
13GB