

# DeleteResourcesByExternalId
<a name="API_DeleteResourcesByExternalId"></a>

Deletes resources linked to an external ID. This action only applies if you have configured blue/green deployments through Amazon CloudFormation. 

**Note**  
It is not necessary to call this action directly. CloudFormation calls it on your behalf when it needs to delete stack resources. This action is offered publicly in case you need to delete resources to comply with General Data Protection Regulation (GDPR) requirements.

## Request Syntax
<a name="API_DeleteResourcesByExternalId_RequestSyntax"></a>

```
{
   "externalId": "{{string}}"
}
```

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

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

The request accepts the following data in JSON format.

 ** [externalId](#API_DeleteResourcesByExternalId_RequestSyntax) **   <a name="CodeDeploy-DeleteResourcesByExternalId-request-externalId"></a>
The unique ID of an external resource (for example, a CloudFormation stack ID) that is linked to one or more CodeDeploy resources.  
Type: String  
Required: No

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

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

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

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

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/codedeploy-2014-10-06/DeleteResourcesByExternalId) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/codedeploy-2014-10-06/DeleteResourcesByExternalId) 