add mix task for instance deletion

This commit is contained in:
sadposter 2023-06-08 14:54:22 +01:00
parent fb8081e1a3
commit 67beb1404b

View file

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