Skip to content

Commit 9ea47a1

Browse files
authored
Add tootctl emoji purge (mastodon#10481)
Fix mastodon#10441
1 parent 6195e42 commit 9ea47a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/mastodon/emoji_cli.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ def import(path)
6666
say("Imported #{imported}, skipped #{skipped}, failed to import #{failed}", color(imported, skipped, failed))
6767
end
6868

69+
desc 'purge', 'Remove all custom emoji'
70+
def purge
71+
CustomEmoji.in_batches.destroy_all
72+
say('OK', :green)
73+
end
74+
6975
private
7076

7177
def color(green, _yellow, red)

0 commit comments

Comments
 (0)