All Products
Search
Document Center

Resource Access Management:DeleteAccessKey

Last Updated:Jan 20, 2025

Deletes an AccessKey pair for an Alibaba Cloud account or a Resource Access Management (RAM) user.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
UserAccessKeyIdstringYes

The ID of the AccessKey pair that you want to delete.

LTAI4GFTgcR8m8cZQDTH****
UserPrincipalNamestringNo

The logon name of the RAM user.

If this parameter is empty, the AccessKey pair of the current user is deleted.

test@example.onaliyun.com

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC

Examples

Sample success responses

JSONformat

{
  "RequestId": "B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-14API Description UpdateView Change Details