Skip to content

Conversation

@melroy89
Copy link
Member

@melroy89 melroy89 commented Jan 25, 2025

  • As the title says; introducing a new command for removing old images from your instance.
  • By default will try to delete old federated images from threads, thread comments, posts and post comments.
  • By default the monthsAgo arg is set to 12 months (1 year)
  • By default the type arg is set to "all", meaning delete all images from threads, threads comments, posts and post comments, with the exceptions of users. Since I believe users can still be activate after 12 months, right ;)..
  • Extended the docs

In my case, each time running ./bin/console mbin:images:delete, will delete around 1GB of data from my media directory. Just for info.

@melroy89 melroy89 added enhancement New feature or request backend Backend related issues and pull requests labels Jan 25, 2025
@melroy89 melroy89 self-assigned this Jan 25, 2025
@melroy89 melroy89 requested a review from BentiGorlich January 25, 2025 16:03
Copy link
Member

@BentiGorlich BentiGorlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some remarks. Additionally I would like to see a counter at the end how many images were deleted, but that is just icing on the cake :)

@melroy89 melroy89 requested a review from BentiGorlich January 28, 2025 23:44
Copy link
Member

@BentiGorlich BentiGorlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just small annotations. Otherwise it looks fine :)

@melroy89 melroy89 merged commit 9e86ad0 into main Jan 29, 2025
7 checks passed
@melroy89 melroy89 deleted the delete_old_images branch January 29, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend related issues and pull requests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants