How to Delete a User on Linux (and Remove Every Trace)
The command to use depends on which distribution of Linux you’re using. For Debian based Linux distributions, the command is deluser, and for the rest of the Linux world, it is userdel.
sudo deluser –remove-home USERNAME