Skip to content

Problem: Not able to delete accumulated avatar and header images #446

Open

Description

@jorgesat

The tootctl cron job currently deletes attached media after certain period of time. However, many admins are complaining that there is a large amount of disk space being used in avatar and header images, especially from large instances and from old instances and accounts that no longer exist.

Please see: mastodon/mastodon#9567

Proposed solution: Enabling the possibility to delete such images from disk.

Activity

  1. weex commented on Nov 15, 2022

    @weex
    Member

    Looks like a valid problem to me. There seem to be several solutions offered in that thread and one that was merged 8 days ago on setting a retention policy. Not sure which would be best but we'll merge it when a pull request is created!

  2. weex commented on Nov 17, 2022

    @weex
    Member

    Seems to be a possible solution. mastodon/mastodon#18397

  3. weex commented on Dec 3, 2022

    @weex
    Member

    The above PR gave modest results.

    2219/2219 |=======================================| Time: 00:23:34
    OK, pruned 2196 accounts
    

    Before (from tootctl media usage):

    Avatars:	5.65 GB (3.05 MB local)
    Headers:	12.2 GB (2.04 MB local)
    

    After

    Avatars:	5.5 GB (3.05 MB local)
    Headers:	11.9 GB (2.04 MB local)
    
  4. evanphilip commented on Feb 20, 2023

    @evanphilip

    Is this issue resolved by mastodon/mastodon#22149, which closed issue mastodon/mastodon#9567?

  5. weex commented on Feb 20, 2023

    @weex
    Member

    @evanphilip

    Is this issue resolved by mastodon/mastodon#22149, which closed issue mastodon/mastodon#9567?

    Great work! It's not resolved yet, but if you want to submit as a PR (and it passes our very similar CI) we'll merge it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions