From 13a64b82e3bc6c466460b47b85422010a23b6fce Mon Sep 17 00:00:00 2001
From: Phenethylamine <phenethylamine@tutanota.com>
Date: Thu, 12 Apr 2018 14:30:53 -0400
Subject: [PATCH] Switch to User.delete for rm_user task

---
 lib/mix/tasks/rm_user.ex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/mix/tasks/rm_user.ex b/lib/mix/tasks/rm_user.ex
index 30196d502..aa0cf4951 100644
--- a/lib/mix/tasks/rm_user.ex
+++ b/lib/mix/tasks/rm_user.ex
@@ -1,14 +1,14 @@
 defmodule Mix.Tasks.RmUser do
   use Mix.Task
   import Mix.Ecto
-  alias Pleroma.{Repo, User}
+  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
-      Repo.delete!(user)
+      user.delete()
     end
   end
 end