Oof, need to find some way to claw back some Mastodon database space.
-
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?

-
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?

@liam hey, it's in portuguese but you can use a translator to understand the comments:
https://jardim.social.br/administradores/script-limpeza/You can also search for `pg_repack` and `vacuumdb`.
-
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?

@liam 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

-
@liam hey, it's in portuguese but you can use a translator to understand the comments:
https://jardim.social.br/administradores/script-limpeza/You can also search for `pg_repack` and `vacuumdb`.
@cadusilva Thank you!
I had a bunch of the tootctl commands in a script that runs periodically already, but not the statuses remove one and didn't think to check the docs

-
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?

# Prune remote accounts that never interacted with local users
tootctl accounts prune -
R relay@relay.mycrowd.ca shared this topic