Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Docs: https://docs.joinmastodon.org/admin/tootctl/

tootctl media remove

Remove locally cached copies of media attachments from other servers.

Already doing this in crontab.

tootctl media remove-orphans

Scans for files that do not belong to existing media attachments, and remove them.

Doesn't matter, S3 storage space is cheap and the API requests to scan for the files would cost.

tootctl preview_cards remove

Remove local thumbnails for preview cards.

Yeah let's clean them up. Default is to remove cards older than 180 days, which seems good.

After done the initial run, add to crontab.

tootctl accounts cull

Remove remote accounts that no longer exist.

Let's do it 👍

After done the initial run, add to crontab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment