If you no longer need the user account

if non root user with sudo privileges

sudo deluser olduser

or with root

deluser olduser

To remove the home directory for the old user

sudo deluser –remove-home

or with root

deluser –remove-home

If the user had root privileges

visudo and look for the line
root ALL=(ALL:ALL) ALL
olduser ALL=(ALL:ALL) ALL <----Delete Line

Leave a Reply

Your email address will not be published. Required fields are marked *