From 56b846f38c417e8eda740404632aeabd544763ef Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 2 Jul 2023 16:42:30 +0100 Subject: [PATCH] Prune mastodon accounts and orphan media --- ansible/roles/mastodon/files/purge-media.sh | 2 ++ 1 file changed, 2 insertions(+) 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