The command to delete a user is userdel.
When this command is executed, the user information will be deleted, but the user's home directory will be left behind.
If you want to delete the home directory as well, specify "-r" as an option and execute it.
|# id nuy ←Check the information of user nuy
# userdel nuy ←Delete nuy
# ls -l /home ←Check your home directory.
leg sante nuy ←The nuy user will be removed, but the home directory will remain
●Delete the home directory along with it.
If you want to delete the home directory as well, run the userdel command with the option "-r".
|# userdel -r nuy
# ls /home ←Check your home directory.
↑The nuy user's home directory will also be removed