delgroup --version (return code: 0)
deluser version 3.113+nmu3ubuntu4
Removes users and groups from the system.
Copyright (C) 2000 Roland Bauerschmidt <roland@copyleft.de>
deluser is based on adduser by Guy Maor <maor@debian.org>, Ian Murdock
<imurdock@gnu.ai.mit.edu> and Ted Hajek <tedhajek@boombox.micro.umn.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License, /usr/share/common-licenses/GPL, for more details.
delgroup --help (return code: 0)
deluser USER
remove a normal user from the system
example: deluser mike
--remove-home remove the users home directory and mail spool
--remove-all-files remove all files owned by user
--backup backup files before removing.
--backup-to <DIR> target directory for the backups.
Default is the current directory.
--system only remove if system user
delgroup GROUP
deluser --group GROUP
remove a group from the system
example: deluser --group students
--system only remove if system group
--only-if-empty only remove if no members left
deluser USER GROUP
remove the user from a group
example: deluser mike students
general options:
--quiet | -q don't give process information to stdout
--help | -h usage message
--version | -v version number and copyright
--conf | -c FILE use FILE as configuration file