The following code examples show how to use DeleteGroup
.
- AWS CLI
-
To delete an IAM group
The following
delete-group
command deletes an IAM group namedMyTestGroup
.aws iam delete-group \ --group-name
MyTestGroup
This command produces no output.
For more information, see Deleting an IAM user group in the AWS IAM User Guide.
-
For API details, see DeleteGroup
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.