• Help & contact
    • Spring Offers
      %

    For Cloud Servers, VPS, Virtual Server, Dedicated Servers and Server Power Deals

    To delete a sudo-enabled user in Linux, do the following:

    • Log in as the root user on the desired server.

    • To delete a user and its home directory, enter the following command:

      [root@localhost ~]# userdel -r USERNAME

      Example

      [root@localhost ~]# userdel -r johnsmith

      The user is now deleted.