

# DeleteWorkloadIdentityProvider

Deletes a workload identity provider.

The provider must be empty first. A workload identity template that still references it causes `DeleteConflictException`. Delete every X.509 outbound signer on the provider before you delete the provider itself. A provider that does not exist returns `NoSuchEntityException` rather than success, so a mis-addressed ARN cannot read as a completed delete.

The response carries a `DeletionTaskId`, a unique token that expires 24 hours after the call. Pass it to [GetWorkloadIdentityProviderDeletionStatus](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetWorkloadIdentityProviderDeletionStatus.html) to read the status of the deletion.

## Request Parameters
<a name="API_DeleteWorkloadIdentityProvider_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** WorkloadIdentityProviderArn **   
The Amazon Resource Name (ARN) of the provider to delete.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 2048.  
Required: Yes

## Response Elements
<a name="API_DeleteWorkloadIdentityProvider_ResponseElements"></a>

The following element is returned by the service.

 ** DeletionTaskId **   
The identifier of the deletion. Pass it to [GetWorkloadIdentityProviderDeletionStatus](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetWorkloadIdentityProviderDeletionStatus.html) to read the deletion's status.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1000.

## Errors
<a name="API_DeleteWorkloadIdentityProvider_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** ConcurrentModification **   
The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.  
HTTP Status Code: 409

 ** DeleteConflict **   
The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.  
HTTP Status Code: 409

 ** InvalidInput **   
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.  
HTTP Status Code: 400

 ** NoSuchEntity **   
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.  
HTTP Status Code: 404

 ** ServiceFailure **   
The request processing has failed because of an unknown error, exception or failure.  
HTTP Status Code: 500

## Examples
<a name="API_DeleteWorkloadIdentityProvider_Examples"></a>

### Example
<a name="API_DeleteWorkloadIdentityProvider_Example_1"></a>

This example illustrates one usage of DeleteWorkloadIdentityProvider.

#### Sample Request
<a name="API_DeleteWorkloadIdentityProvider_Example_1_Request"></a>

```
https://iam.amazonaws.com/?Action=DeleteWorkloadIdentityProvider
&WorkloadIdentityProviderArn=arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd
&Version=2010-05-08
&AUTHPARAMS
```

#### Sample Response
<a name="API_DeleteWorkloadIdentityProvider_Example_1_Response"></a>

```xml
<DeleteWorkloadIdentityProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
  <DeleteWorkloadIdentityProviderResult>
    <DeletionTaskId>v1.AQICAHiEXAMPLEOpaqueTokenEXAMPLE</DeletionTaskId>
  </DeleteWorkloadIdentityProviderResult>
  <ResponseMetadata>
    <RequestId>913e3f37-99ed-11e1-a4c3-270EXAMPLE04</RequestId>
  </ResponseMetadata>
</DeleteWorkloadIdentityProviderResponse>
```

## See Also
<a name="API_DeleteWorkloadIdentityProvider_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/iam-2010-05-08/DeleteWorkloadIdentityProvider) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iam-2010-05-08/DeleteWorkloadIdentityProvider) 