| Did this page help you? Yes No Tell us about it... |
This action deletes a CloudFront origin access identity. You must first disassociate the
identity from all distributions (by updating each distribution's configuration to omit the
OriginAccessIdentity element). Make sure to wait until each distribution's state
is Deployed before deleting the origin access identity.
To delete an identity, you do a DELETE on the
2010-11-01/origin-access-identity/CloudFront/<identity
ID> resource.
DELETE /2010-11-01/origin-access-identity/cloudfront/<identity ID> HTTP/1.1
Host: cloudfront.amazonaws.com
If-Match: [value from ETag header in previous GET or PUT response]
Authorization: [AWS authentication string]
Date: [time stamp]
[Other required headers]
The following table lists the special request header the action uses in addition to the common request headers all actions use (for more information, see Common REST Headers).
| Name | Description | Required |
|---|---|---|
|
|
The value of the Type: String |
Yes |
204 No Content x-amz-request-id: [Request ID]
The following table lists the special errors returned in addition to the common errors all actions return (for more information, see Errors).
| Error | Description | HTTP Status Code |
|---|---|---|
|
|
The CloudFront origin access identity is still being used by one or more distributions. |
409 |
|
|
The If-Match version is missing or not valid. |
400 |
|
|
The specified origin access identity does not exist. |
404 |
|
|
The precondition given in one or more of the request-header fields
evaluated to |
412 |
The following example request deletes the CloudFront origin access identity with ID E74FTE3AJFJ256A.
DELETE /2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A HTTP 1.1 Host: cloudfront.amazonaws.com If-Match: E2QWRUHAPOMQZL Authorization: AWS O39F6A430S6FJNPPGDR2:frJIUN8DYpKDtOLEXAMPLE= [Other required headers]
204 No Content
x-amz-request-id: request_id