To remove a user account on Linux, you can use the
userdel
command. This command will delete the user account and its related files.For example, to delete the user “john” you can use the following command:
sudo userdel john
Note: You need to be logged in as a superuser (root) to run this command.