Deletes a RAM user group.

  • Before you delete a RAM user group, make sure that no policy is attached to the group.
  • Before you delete a RAM user group, make sure that no RAM user belongs to this group.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteGroup

The name of this action.

Value: DeleteGroup

GroupName String Yes Dev-Team

The RAM user group name. It must be 1 to 64 characters in length.

Pattern: ^[a-zA-Z0-9\-]+$.

Response parameters

Parameter Type Example value Description
RequestId String FCF40AB5-881C-A0F9-334C-B0AD423AA69D The request ID.

Example

Request example

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

Response example

XML format

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

JSON format

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

Errors

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