mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 03:24:04 +00:00
15 lines
290 B
Elixir
15 lines
290 B
Elixir
defmodule Mix.Tasks.RmUser do
|
|
use Mix.Task
|
|
import Mix.Ecto
|
|
alias Pleroma.User
|
|
|
|
@shortdoc "Permanently delete a user"
|
|
def run([nickname]) do
|
|
ensure_started(Repo, [])
|
|
|
|
with %User{local: true} = user <- User.get_by_nickname(nickname) do
|
|
user.delete()
|
|
end
|
|
end
|
|
end
|