To delete a sudo-enabled user in Linux, do the following:
Log in as the root user on the desired server.
To delete a user and its home directory, enter the following command:
[root@localhost ~]# userdel -r USERNAME
[root@localhost ~]# userdel -r johnsmith
The user is now deleted.
Did this article help you?
Your feedback helps us to further improve our services. To leave feedback, log in to your IONOS account by clicking on the login button at the top right. You can then submit a rating below the article.