-
Notifications
You must be signed in to change notification settings - Fork 30
Introducing the mbin:images:delete command #1394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BentiGorlich
left a comment
There was a problem hiding this 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 :)
66390d3 to
06b0a90
Compare
Co-authored-by: BentiGorlich <[email protected]>
06b0a90 to
6439262
Compare
BentiGorlich
left a comment
There was a problem hiding this 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 :)
Co-authored-by: BentiGorlich <[email protected]>
monthsAgoarg is set to 12 months (1 year)typearg 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 ;)..In my case, each time running
./bin/console mbin:images:delete, will delete around 1GB of data from my media directory. Just for info.