Help Center > > API Reference> Credential Management> Deleting a Permanent Access Key

Deleting a Permanent Access Key

Updated at: Mar 12, 2020 GMT+08:00

Function

This API can be used by the administrator to delete the specified permanent access key of an IAM user or used by an IAM user to delete one of its own permanent access keys.

The API can be called using both the global endpoint and region-specific endpoints. For IAM endpoints, see Regions and Endpoints.

URI

DELETE /v3.0/OS-CREDENTIAL/credentials/{access_key}

Table 1 URI parameters

Parameter

Mandatory

Type

Description

access_key

Yes

String

AK to be deleted

Request Parameters

Table 2 Parameters in the request header

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Fill application/json;charset=utf8 in this field.

X-Auth-Token

Yes

String

A token with the Security Administrator permission is required if the administrator is requesting to delete a specified permanent access key of an IAM user.

The user token (no special permission requirements) of an IAM user is required if the user is requesting to delete one of its own permanent access keys.

Response Parameters

None

Example Request

DELETE https://iam.myhuaweicloud.com/v3.0/OS-CREDENTIAL/credentials/{access_key}

Example Response

None

Status Codes

Status Code

Description

204

The access key is deleted successfully.

400

Invalid parameters.

401

Authentication failed.

403

Access denied.

404

The requested resource cannot be found.

500

Internal server error.

Error Codes

None

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel