LnxUser::deleteGroup
Innen: IT documentation
Description
Object-oriented style
public lnxUser::deleteGroup ( string | int | array $group ): bool
Procedural style
lnxDeleteGroup ( string | int | array $group ): bool
Delete a linux group.
Parameters
- group
- Group Name or Group ID or an associative array what contains the parameters of deleting group.
- The structure of the the array:
- [
- 'name' => string
- Mantandory! Name of linux group.
- 'force' => bool
- Optional. If true delete group even if it is the primary group of a user
- ]
Return Values
Returns true if group is deleted, false otherwise
Changelog
| Version (lnxUser) |
Description |
|---|---|
| 1.00 | available |
Examples
$group = 'testGroup';
# Delete linux group
if ( ! lnxDeleteGroup ( $group ) )
print( "Something went wrong during Delete group!" . PHP_EOL );
else
print( "'$group' group is deleted." . PHP_EOL );