Add `tootctl emoji purge` (#10481)

Fix #10441
master
Eugen Rochko 6 years ago committed by GitHub
parent e007c7a99b
commit 6689e572f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/mastodon/emoji_cli.rb

@ -66,6 +66,12 @@ module Mastodon
say("Imported #{imported}, skipped #{skipped}, failed to import #{failed}", color(imported, skipped, failed))
end
desc 'purge', 'Remove all custom emoji'
def purge
CustomEmoji.in_batches.destroy_all
say('OK', :green)
end
private
def color(green, _yellow, red)

Loading…
Cancel
Save