Deletes a RAM user group.

Before you delete a RAM user group, make sure that no policies are attached to the group and no RAM users are included in the group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteGroup

The operation that you want to perform. Set the value to DeleteGroup.

GroupName String Yes Dev-Team

The name of the RAM user group.

If you want to query the name of a RAM user group, call the ListGroups operation.

Response parameters

Parameter Type Example Description
RequestId String FCF40AB5-881C-A0F9-334C-B0AD423AA69D

The ID of the request.

Examples

Sample requests

https://ram.aliyuncs.com/?Action=DeleteGroup
&GroupName=Dev-Team
&<Common request parameters>

Sample success responses

XML format

<DeleteGroupResponse>
      <RequestId>FCF40AB5-881C-A0F9-334C-B0AD423AA69D</RequestId>
</DeleteGroupResponse>

JSON format

{
    "RequestId": "FCF40AB5-881C-A0F9-334C-B0AD423AA69D"
}

Error codes

For a list of error codes, visit the API Error Center.