Deletes the specified group. The group must not contain any users or have any attached policies.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Name of the group to delete. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Delete a user group.
// Instantiate the class $iam = new AmazonIAM(); // Delete a child group $response = $iam->delete_group('wxyz_group'); // Success? var_dump($response->isOK());Result:
bool(true)
Delete a user group.
// Instantiate the class $iam = new AmazonIAM(); // Delete a parent group $response = $iam->delete_group('abcd_group'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub