Deletes a RAM user.

Note Before you delete a RAM user, make sure that no policy is attached to the user, and the user does not belong to any group.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteUser

The name of this action.

Value: DeleteUser

UserName String Yes Alice

The username. It must be 1 to 64 characters in length.

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

Response parameters

Parameter Type Example value Description
RequestId String 1C488B66-B819-4D14-8711-C4EAAA13AC01 The request ID.

Example

Request example

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

Response example

XML format

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

JSON format

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

Errors

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