How to delete a user account in linux bases application.

Hi,

Can anyone please guide me how can I remove/block a user from a server access.

/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john

I used the above command to add a user "john". How do I delete and block john.

Appreciate your responses.

No duplicate or cross-posting, please read the rules.

Continue here:

Thread closed.