From 34f32df7cf61263b5ab1e55097e3913f50ac5e7d Mon Sep 17 00:00:00 2001 From: Ricard Torres Date: Tue, 11 Apr 2023 14:27:09 +0200 Subject: [PATCH] feat: adds new flags to tootctl media remove (#1172) Adds documentation from this PR https://github.com/mastodon/mastodon/pull/22149/files landing in the next Mastodon stable 4.1.0 --- content/en/admin/tootctl.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/content/en/admin/tootctl.md b/content/en/admin/tootctl.md index f06a21ab..3fb90810 100644 --- a/content/en/admin/tootctl.md +++ b/content/en/admin/tootctl.md @@ -644,14 +644,23 @@ Fix corrupted database indexes that may have been caused due to changing collati ### `tootctl media remove` {#media-remove} -Remove locally cached copies of media attachments from other servers. +Removes locally cached copies of media attachments, avatars or profile headers from other servers. By default, only media attachments are removed. `--days N` -: How old media attachments have to be before they are removed. Defaults to 7. +: How old media attachments have to be before they are removed. In case of avatars and headers, how old the last webfinger request and update to the user has to be before they are removed. Defaults to 7. `--concurrency N` : The number of workers to use for this task. Defaults to N=5. +`--prune-profiles` +: Instead of media attachments, remove locally cached copies of avatars and headers from other servers. Cannot be combined with `--remove-headers`. + +`--remove-headers` +: Instead of media attachments, remove locally cached copies of headers from other servers. Cannot be combined with `--prune-profiles`. + +`--include-follows` +: Override the default behavior of `--prune-profiles` and `--remove-headers` to remove locally cached copies of avatars (and headers) from other servers, irrespective of follow status (by default, they are only removed from accounts that are not followed by or following anyone locally). Can only be used with `--prune-profiles` or `--remove-headers`. + `--verbose` : Print additional information while task is processing. @@ -661,6 +670,7 @@ Remove locally cached copies of media attachments from other servers. **Version history:**\ 2.5.0 - added\ 2.6.2 - show freed disk space +4.1.0 - added --prune-profiles, --remove-headers, and --include-follows. ---