Delete a distribution
The following procedure deletes a distribution by using the CloudFront console. For information about deleting with the CloudFront API, see DeleteDistribution in the Amazon CloudFront API Reference.
If you need to delete a distribution with an OAC attached to an S3 bucket, see Delete a distribution with an OAC attached to an S3 bucket for important details.
Warning
-
Before you can delete a distribution, you must disable it, which requires permission to update the distribution. Once deleted, a distribution cannot be recovered.
-
If you disable a distribution that has an alternate domain name associated with it, CloudFront stops accepting traffic for that domain name (such as www.example.com), even if another distribution has an alternate domain name with a wildcard (*) that matches the same domain (such as *.example.com).
-
You can't delete a distribution that is subscribed to a CloudFront flat-rate pricing plan. You will receive an error that says, "You can't delete this distribution while it's subscribed to a pricing plan." You must first cancel the pricing plan and then after the current billing cycle, delete the distribution.