How do I delete / remove user account from my server? How do I delete a user account under Linux operating systems include home directory and running cron jobs?
Usually the particular user (person) can be left from the company or block the access from the Linux servers based on company policy are common in every company. In this article, I will guide to delete a user account and related files from the user account under the Linux operating system by using the userdel command. The userdel command must be run as a root user on Linux. What is Linux? Linux is an operating system just like Window... More
Linux Delete / Remove User account command syntax
userdel [options] username // Delete a user account userdel username // Delete a user account with home directory and mail spool userdel -r username
userdel linux command examples
Let us assume to remove the user account gowri from the local Linux system / server / workstation, enter:
// Delete a user account userdel gowri // Delete a user account with home directory and mail spool userdel -r gowri