Post #2462748
2026-05-03 19:32 UTC
Oof, need to find some way to claw back some Mastodon database space.
Anyone aware of a script that deletes old posts from remote users with 0 local followers or similar?
#MastoAdmin
Replies (3)
-
@cadusilva@bolha.one 2026-05-03 19:35
@liam@mastodon.gruezi.net hey, it's in portuguese but you can use a translator to understand the comments: :xp_disk_cleanup: https://jardim.social.br/administradores/script-limpeza/ You can also search for `pg_repack` and `vacuumdb`.
-
@spielleitung@mastodon.pnpde.social 2026-05-03 20:24
@liam@mastodon.gruezi.net here's what I use: https://codeberg.org/pnpde.social/scripts/src/branch/main/mastodon-maintenance.sh It's really just some tootctl calls. Iow: Mastodon brings a tool for the task :)
-
@waffles@masto.yttrx.com 2026-05-05 18:12
@liam@mastodon.gruezi.net # Prune remote accounts that never interacted with local users tootctl accounts prune