Deleting a Permanent Access Key
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 their own permanent access keys.
The API can be called using both the global endpoint and region-specific endpoints.
Deleted permanent access keys cannot be recovered. Check that the access keys have not been used for more than one week before deleting them.
URI
DELETE /v3.0/OS-CREDENTIAL/credentials/{access_key}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
access_key |
Yes |
String |
AK to be deleted. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
X-Auth-Token |
Yes |
String |
If the administrator is requesting to delete a specified permanent access key of an IAM user, see Actions. If an IAM user is requesting to delete one of their own permanent access keys, the user token (no special permission requirements) of the user is required. |
Response Parameters
None
Example Request
Request for deleting a permanent access key
DELETE https://iam.myhuaweicloud.eu/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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.