diff --git a/ansible/roles/mastodon/files/purge-media.sh b/ansible/roles/mastodon/files/purge-media.sh index 0a3ea7e..84039a0 100644 --- a/ansible/roles/mastodon/files/purge-media.sh +++ b/ansible/roles/mastodon/files/purge-media.sh @@ -4,7 +4,9 @@ set -ex cd /opt/mastodon +docker-compose exec mastodon tootctl accounts prune docker-compose exec mastodon tootctl media remove --days=7 docker-compose exec mastodon tootctl statuses remove --days=7 docker-compose exec mastodon tootctl preview_cards remove --days=7 +docker-compose exec mastodon tootctl media remove-orphans docker-compose exec mastodon tootctl cache clear