❑ userdel [Option] [User name] : A Linux command to remove an account.
❑ The reason to use the -r option.
If you do not use the -r option, the home directory of the removed account remains. This home directory and the files below it still point the UID and GID of the removed account. If the created account has the same UID or GID as the removed account, it may cause security problems such as browsing the data of the removed user.
If you do not use the -r option, the home directory of the removed account remains. This home directory and the files below it still point the UID and GID of the removed account. If the created account has the same UID or GID as the removed account, it may cause security problems such as browsing the data of the removed user.