Definition:
When the system admin wants to remove a group that is no longer needed, this command is used.
Syntax:
groupdel group_name
Example:
groupdel developersA
Output:
After successful deletion
If the group does not exist or is in use:
groupdel: group 'developers' does not exist
Note:
- This command only deletes the group account and does not remove any files or folders; they remain as they are.
- After successful deletion, no message appears in the output.
- If an error occurs or the group does not exist, an error message will be displayed.