For security reason, I want to delete the first user (which has all rights, event without the admin role) and login only with the drush uli command. How can I do that? From the backoffice it say I can't remove that user

  • it's not possible but if you insist that, just need to delete it on database manually, go to users table and remove the user with uid =1 :|
    – Yuseferi
    Mar 15, 2017 at 11:14

1 Answer 1


I doubt that's possible, or at least not without messing with a lot of core code.

User 1 is synonymous with the root user in linux. It can be disabled, hardened, made virtually impossible to access, but not removed.

See Securing user #1 for more information.

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.