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.


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.


Request example
&<Common parameters>            

Response example

XML format


JSON format



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