Add `tootctl emoji purge` (#10481)

Fix #10441
th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent a9c29f6e15
commit c455cba4d8

@ -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