Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Created April 25, 2020 22:14
Show Gist options
  • Save ashfurrow/2a395a323f35d6b6036d2c7c078e8a5c to your computer and use it in GitHub Desktop.
Save ashfurrow/2a395a323f35d6b6036d2c7c078e8a5c to your computer and use it in GitHub Desktop.

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