Delete a distribution - Amazon CloudFront (original) (raw)
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.
Note
Be aware that before you can delete a distribution, you must disable it, which requires permission to update the distribution.
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).
Multi-tenant
Before you can delete a multi-tenant distribution, you must first delete all associated distribution tenants from it.
To delete a multi-tenant distribution
- Sign in to the AWS Management Console and open the CloudFront console athttps://console.aws.amazon.com/cloudfront/v4/home.
- In the right pane of the CloudFront console, choose the name of the multi-tenant distribution that you want to delete.
- For Tenants, select and delete all associated distribution tenants.
- Choose Disable to disable the distribution, and chooseDisable distribution to confirm.
- Wait until the new timestamp appears under the Last modified column.
- It might take a few minutes for CloudFront to propagate your change to all edge locations.
- Choose Delete, Delete distribution.
To delete a distribution tenant
- Sign in to the AWS Management Console and open the CloudFront console athttps://console.aws.amazon.com/cloudfront/v4/home.
- Under SaaS, choose Distribution tenants.
- Search for the distribution tenant. Use the dropdown menu in the search bar to filter by domain, name, distribution ID, certificate ID, connection group ID, or web ACL ID.
- Select the distribution tenant to delete.
- Choose Delete tenant, Delete distribution tenant.
Standard
To delete a standard distribution
- Sign in to the AWS Management Console and open the CloudFront console athttps://console.aws.amazon.com/cloudfront/v4/home.
- In the right pane of the CloudFront console, find the distribution that you want to delete.
- If the Status column shows that the distribution is alreadyDisabled, skip to Step 6.
- If the Status shows Enabled but the distribution still shows Deploying in the Last modified column, wait for deployment to finish before continuing to step 3.
- In the right pane of the CloudFront console, select the check box for the distribution that you want to delete.
- Choose Disable to disable the distribution, and chooseYes, Disable to confirm. Then choose Close.
- The value of the Status column immediately changes toDisabled.
- Wait until the new timestamp appears under the Last modified column.
- It might take a few minutes for CloudFront to propagate your change to all edge locations.
- Select the check box for the distribution that you want to delete.
- Choose Delete, Delete.
- If the Delete option isn't available, it means that CloudFront is still propagating your change to the edge locations. Wait until the new timestamp appears under the Last modified column, then repeat steps 6-7.
Tag a distribution
Use various origins
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.