What is the groupdel Command?
If a system administrator wants to remove a group that is no longer needed, the groupdel command is used. This command deletes the specified group from the system.
Syntax:
groupdel group_name
Example 1: Delete a group
Command:
groupdel developersA
Output:
After successful deletion ok If the group does not exist or is in use groupdel: group 'developersA' 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.












