RAILS_ENV=production NUM_DAYS=3 @daily cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rake mastodon:media:remove_remote
I put this in cron to remove the remote media files every 3 days but its not working mine instance uses 8GB of Storage
Can Somebody help me
So This cron doesnt work.
After taking Help from sander an awesome guy on fediverse.
he told me about the manual way to clean up cache
Here is Step by Step
sudo su - mastodon
RAILS_ENV=production bin/tootctl media remove
Glad to see your issue was solved! I’m not sure where you got this cron info from, but we removed the
rake mastodon:media task a couple of versions ago.