GROUPDEL(1M) Maintenance Commands GROUPDEL(1M)

groupdel - delete a group definition from the system

/usr/sbin/groupdel group

The groupdel utility deletes a group definition from the system. It deletes the appropriate entry from the /etc/group file.

An existing group name to be deleted.

The following exit values are returned:




Invalid command syntax. A usage message for the groupdel command is displayed.


group does not exist.


Cannot update the /etc/group file.

system file containing group definitions

groupadd(1M), groupmod(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), attributes(5)

The groupdel utility only deletes a group definition that is in the local /etc/group file. If a network nameservice is being used to supplement the local /etc/group file with additional entries, groupdel cannot change information supplied by the network nameservice.

groupdel fails if a group entry (a single line in /etc/group) exceeds 2047 characters.

January 7, 2018 OmniOS