diff --git a/lib/mastodon/cli/media.rb b/lib/mastodon/cli/media.rb index 93f0f80b4b..87721f94cb 100644 --- a/lib/mastodon/cli/media.rb +++ b/lib/mastodon/cli/media.rb @@ -173,6 +173,7 @@ module Mastodon::CLI path_segments = object.key.split('/') progress.increment next unless orphaned_file?(path_segments) + begin object.destroy unless dry_run? reclaimed_bytes += object.content_length