How Do I Remove a Primary Group in Linux?
Contents How Do I Remove a Group in Linux? to Delete a Group from Linux, Use the Command Groupdel. There Is No Option. If the Group to Be Deleted Is the...
Contents
How do I remove a group in Linux?
To delete a group from Linux, use the command groupdel. There is no option. If the group to be deleted is the initial group of one of the users, you can not delete the group. The files changed by the groupdel command are two files “/etc/group” and “/etc/gshadow”.
Must Read
How do I delete a primary group in Ubuntu?
Deleting a Group in Linux
To delete(remove) a given group from the system, invoke the groupdel command followed by the group name. The command above removes the group entry from the /etc/group and /etc/gshadow files. On success, the groupdel command does not print any output.