infrastructure/ansible/roles/mastodon/files/purge-media.sh

13 lines
395 B
Bash
Raw Permalink Normal View History

2023-01-29 19:46:47 +00:00
#!/usr/bin/env bash
set -ex
cd /opt/mastodon
docker-compose exec mastodon tootctl accounts prune
2023-01-29 19:46:47 +00:00
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
2023-01-29 19:46:47 +00:00
docker-compose exec mastodon tootctl cache clear