Deletes the AccessKey of a RAM user.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteAccessKey

The name of this action.

Value: DeleteAccessKey

UserAccessKeyId String Yes 0wNEpMMlzy7s**** The ID of the AccessKey to be deleted.
UserName String No Alice The username.

Response parameters

Parameter Type Example value Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=DeleteAccessKey
&UserName=Alice
&UserAccessKeyId=0wNEpMMlzy7s****
&<Common parameters>

Response example

XML format

<DeleteAccessKeyResponse>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</DeleteAccessKeyResponse>

JSON format

{
    "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Errors

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