CmdID

CmdID / aws / aws cloudfront

aws cloudfront delete-distribution

Delete a distribution. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a CloudFront distribution

The following delete-distribution example deletes the CloudFront distribution with the ID EDFDVBD6EXAMPLE. Before you can delete a distribution, you must disable it. To disable a distribution, use the update-distribution command. For more information, see the update-distribution examples.

When a distribution is disabled, you can delete it. To delete a distribution, you must use the --if-match option to provide the distribution's ETag. To get the ETag, use the get-distribution or get-distribution-config command.

aws cloudfront delete-distribution --id EDFDVBD6EXAMPLE --if-match E2QWRUHEXAMPLEIdentify
--idThe distribution ID.
--if-matchThe value of the ETag header that you received when you disabled the distribution.

This command produces no output.

When successful, this command has no output.

For more information, see Delete a distribution in the Amazon CloudFront Developer Guide.

Options

2 in the AWS CLI reference
--idThe distribution ID.
--if-matchThe value of the ETag header that you received when you disabled the distribution.