Skip to content
Snippets Groups Projects
Unverified Commit 6689e572 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add `tootctl emoji purge` (#10481)

Fix #10441
parent e007c7a9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment