akkoma/lib/mix/tasks/pleroma/moderation.ex
2023-06-08 14:59:34 +01:00

13 lines
305 B
Elixir

defmodule Mix.Tasks.Pleroma.Moderation do
use Mix.Task
import Mix.Pleroma
@shortdoc "Does moderation"
def run(["rm-instance", domain | _rest]) do
start_pleroma()
IO.puts("Deleting #{domain}")
Pleroma.Instances.Instance.perform(:delete_instance, domain)
|> IO.inspect()
end
end