## 画像ファイルの容量算出 ``` $ RAILS_ENV=production bundle exec bin/tootctl media usage ``` ## 参照されていないメディアを削除 ``` $ RAILS_ENV=production bundle exec bin/tootctl media remove-orphans ``` ## プレビューカード系の削除(3日間) ``` $ RAILS_ENV=production bundle exec bin/tootctl preview_cards remove --days=3 ``` ## アバターとかヘッダーとか削除(3日間) ``` $ RAILS_ENV=production bundle exec bin/tootctl media remove --days 3 --prune-profiles ``` ## 古いリモートメディアの削除(3日間) ``` $ RAILS_ENV=production bundle exec bin/tootctl media remove --days=3 ``` ## リンク - [[Mastodonの画像メンテをbash+cronで自動化する]] - [勝手 Mastodon tootctl リファレンス (移植版)](https://zenn.dev/kumasun/articles/12dcc7b3e91722945228)