| Did this page help you? Yes No Tell us about it... |
This action deletes a streaming distribution. You must follow a particular process when deleting any type of distribution. For more information, go to Deleting a Distribution in the Amazon CloudFront Developer Guide.
To delete a disabled streaming distribution, you do a DELETE on the
2010-11-01/streaming-distribution/<distribution
ID> resource. If you haven't disabled the distribution, Amazon CloudFront
returns a StreamingDistributionNotDisabled error.
DELETE /2010-11-01/streaming-distribution/<distribution 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 streaming distribution you are trying to delete has not been disabled. |
409 |
|
|
The If-Match version is missing or not valid for the distribution. |
400 |
|
|
The specified streaming distribution 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 EGTXBD79H29TRA8 streaming distribution.
DELETE /2010-11-01/distribution/EGTXBD79H29TRA8 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