Skip to content
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

Implement tootctl accounts prune #18397

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

tribela
Copy link
Contributor

@tribela tribela commented May 11, 2022

Like tootctl statuses remove, This command will delete any remote account that is never interacted with local.
It removes many avatar/header images.

@ClearlyClaire
Copy link
Contributor

Might be worth checking for reports as well, especially in case a status has been soft-deleted.

@tribela
Copy link
Contributor Author

tribela commented May 12, 2022

Thank you for reviewing this code. I'll work on it later today

Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@tribela
Copy link
Contributor Author

tribela commented Jul 1, 2022

Should I add where(silenced_at: nil).where(suspended_at: nil)?

@weex
Copy link
Contributor

weex commented Dec 3, 2022

I tried this out and found results to be modest. Wondering how it can be made more aggressive.

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)

@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants