If you no longer want to use a distribution, use the following procedure to delete it using the CloudFront console.
You can also delete a distribution using the CloudFront API:
- To delete a web distribution, use the
DeleteDistributionAPI action. For more information, go to DeleteDistribution in the Amazon CloudFront API Reference. - To delete an RTMP distribution, use the
DeleteStreamingDistributionAPI action. For more information, go to DeleteStreamingDistribution in the Amazon CloudFront API Reference.
Note
CloudFront lets you create a total of up to 200 web distributions and 100 RTMP distributions for an AWS account.
To Delete a CloudFront Distribution Using the CloudFront Console
-
Sign in to the AWS Management Console and open the CloudFront console at https://console.aws.amazon.com/cloudfront/.
-
In the right pane of the CloudFront console, find the distribution that you want to delete.
-
If the value of the State column is Disabled, skip to Step 7.
If the value of State is Enabled and the value of Status is Deployed, continue with Step 4 to disable the distribution before deleting it.
If the value of State is Enabled and the value of Status is InProgress, wait until Status changes to Deployed. Then continue with Step 4 to disable the distribution before deleting it.
-
In the right pane of the CloudFront console, check the check box for the distribution that you want to delete.
-
Click Disabled to disable the distribution, and click Yes, Disable to confirm. Then click Close.
-
The value of the State column immediately changes to Disabled. Wait until the value of the Status column changes to Deployed.
-
Check the check box for the distribution that you want to delete.
-
Click Delete, and click Yes, Delete to confirm. Then click Close.