Deleting a User
The userdel command is used to delete a user.
For example, to delete the user Test, run the following command:
[root@localhost ~]# userdel Test
If you need to also delete the user's home directory and all contents in the directory, run the userdel command with the -r option to delete them recursively.
If a user has logged in to EulerOS, the user cannot be deleted unless you have first killed relevant processes.