How Do I Remove a User from the Home Directory in Linux?
Contents How Do I Remove a User from My Home Folder? # Userdel -R Username the –R Option Removes the Account from the System. Because User Home Directories Are...
Contents
How do I remove a user from my home folder?
# userdel -r username
The –r option removes the account from the system. Because user home directories are now ZFS datasets, the preferred method for removing a local home directory for a deleted user is to specify the –r option with the userdel command.
Does deleting a user also delete the user’s home folder in Linux?
In most Linux distributions, when removing a user account with userdel , the user home and mail spool directories are not removed. The command above does not remove the user files located in other file systems.