projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one
[akkoma]
/
lib
/
mix
/
tasks
/
rm_user.ex
1
defmodule Mix.Tasks.RmUser do
2
use Mix.Task
3
alias Pleroma.User
4
5
@shortdoc "Permanently delete a user"
6
def run([nickname]) do
7
Mix.Task.run("app.start")
8
9
with %User{local: true} = user <- User.get_by_nickname(nickname) do
10
User.delete(user)
11
end
12
end
13
end