You can call this operation to delete a RAM user.

Before you delete a RAM user, make sure that no policies are attached to the RAM user and that the RAM user does not belong to any groups.

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 DeleteUser

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

UserName String Yes zhangq****

The name of the RAM user.

The name must be 1 to 64 characters in length, and can contain letters, digits, periods (.), hyphens (-), and underscores (_).

Response parameters

Parameter Type Example Description
RequestId String 1C488B66-B819-4D14-8711-C4EAAA13AC01

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=DeleteUser
&UserName=zhangq****
&<Common request parameters>

Sample success responses

XML format

<RequestId>1C488B66-B819-4D14-8711-C4EAAA13AC01</RequestId>

JSON format

{
	"RequestId":"1C488B66-B819-4D14-8711-C4EAAA13AC01"
}

Error codes

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