CompTIA Linux+ XK0-005 Practice Question
You have been tasked with deleting a user account on a Linux server, and you must ensure that the user's home directory and mail spool is also removed. Which command should you execute?
usermod --delete username
userdel -r username
deluser --remove username
userdel --remove-all-files username