Delete/Remove Users in Navy Linux (userdel Command)

Guide to delete a user account and all its associated files using the userdel command.

Backup First

Create a backup before executing.

userdel Command Syntax
userdel [OPTIONS] USERNAME
Kill all jobs of user before to delete
killall -u  USERNAME
Delete User

when removing a user account with userdel, the user home and mail spool directories are not removed.

killall -u  USERNAME
Delete User and also remove home and mail spool directories

Use the -r option to force userdel to remove the user’s home directory and mail spool

killall -r  USERNAME
Forcefully delete a user
killall -f  USERNAME

Finished!

Feel free to report any issue on Issue Tracker https://git.navylinux.org/issue-tracker/general/-/issues

Edit this page