1

Can I simply remove them from admin_users in the DB or is there anything else I need to do?

0

2 Answers 2

4

correct table is admin_user

delete from admin_user where username='username'

you don't have to do anything else, username won't be able to login.

5
  • Perfect. That's exactly what I needed.
    – Max
    Dec 14, 2016 at 15:58
  • 1
    please accept the question if you find it correct. Dec 14, 2016 at 16:02
  • This is not good and also very unpractical. Dec 14, 2016 at 17:16
  • 1
    @Andre did you read the question? Dec 14, 2016 at 17:26
  • Thanks @KonstantinGerasimov, that was the way I was looking for! In my case, a hacker created several accounts having the same email: cannot edit them individually in backend because "the email is already taken". Sep 11, 2019 at 11:28
4

you can remove unwanted users from system > role> permissions > users

4
  • 2
    This would be the safer and more logical option to remove an admin user. Modifying the database directly doesn't always end well.
    – Eamonn
    Dec 14, 2016 at 16:03
  • Im with you - doing it from the databse is more unsecure, however, the question is only for database usage. Anyhow, to have this (better) answer in here will help future visitors of this site. Therefore, upvoted. Thanks for the input.
    – Max
    Dec 14, 2016 at 16:06
  • @Max glad that you got what you needed:) Dec 14, 2016 at 16:08
  • 1
    This is the correct way of doing this. Dec 14, 2016 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.