AWS SDK for .NET Documentation
DeleteAccessKey Method (request)
Amazon ► Amazon.IdentityManagement ► AmazonIdentityManagementServiceClient ► DeleteAccessKey(DeleteAccessKeyRequest)
Did this page help you? Yes No Tell us about it...
Deletes the access key associated with the specified user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this API to manage root credentials even if the AWS account has no associated users.

Declaration Syntax

C#

    public DeleteAccessKeyResponse DeleteAccessKey(
    	DeleteAccessKeyRequest request
    )

Parameters

request (DeleteAccessKeyRequest)
  Container for the necessary parameters to execute the DeleteAccessKey service method.

Return Value
The response from the DeleteAccessKey service method, as returned by IdentityManagementService.
Exceptions

Exception | Condition
--- | ---
LimitExceededException | The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.
NoSuchEntityException | The request was rejected because it referenced an entity that does not exist. The error message describes the entity.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)