Deactivating a user

Hi, i tried to delete a user but i can’t because i have a recursion error. Here is the full traceback
I am running Ironwood.2

So i unchecked the attribute is_active on the user object. despite that the user can login via the mobile application. How to prevent it or fix it ?