1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 10:39:17 +00:00

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