Ubuntu: How to Remove a User Account

Contributor Icon Contributed by shamanstears Date Icon January 13, 2008  
Tag Icon Tagged: Linux

From time to time, it becomes necessary to remove a user account from your computer. Removing a user account from your Ubuntu system is a simple task that requires two separate terminal commands.


1. Open a terminal window.

2. First, you’ll need to delete the user account. Input the following command and hit Enter (change to the name of the user account that is to be removed):sudo userdel
3. Now you’ll want to delete the Home directory for the deleted user account. Input the following command and hit Enter (change to the name of the user account that is to be removed):sudo rm -r /home//

Previous recipe | Next recipe |
 
  • CS
    sudo userdel -r [username]

    removes the user's home directory as well as deleting the user.
  • Thanks - it worked a treat.
  • blake
    thanks. very helpful
  • Mark
    I believe this way is better:

    sudo userdel -r NameOfUserToDelete
  • vijaykumarpal
    ubuntu is very helpful linux operating system
blog comments powered by Disqus