Completely delete a user including the home directory in ubuntu Linux

This post was written by admin on September 16, 2009
Posted Under: General

If you want to remove a user from your Linux system,you may also want to erase the home directory completely.

To delete a user as well as the home directory,you can use this command in terminal window:

sudo deluser --remove-home username_here

If you have deleted the user,you can delete its home directory by typing:

sudo rm -r /home/username

Done.

Related posts:

  1. How to Share Ubuntu Home Directory with Windows
  2. Automatically Delete Files older than N days From Trash using Autotrash
  3. How to Delete Useless Ubuntu Gnome Desktop Themes
  4. Voice and video chat plugin for Google Gmail user in Ubuntu Linux
  5. Save Ubuntu space-auto-delete downloaded packages after installation

    Tags:

    Reader Comments

    JuqGKf I want to say – thank you for this!

    [Reply]

    #1 
    Written By lilikindsli on September 29th, 2009 @ 9:17 pm

    vJhNYL I want to say – thank you for this!

    [Reply]

    #2 
    Written By lilikindsli on September 30th, 2009 @ 2:57 pm

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address