Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
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.
-
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).
- 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 Amazon Web Services Management Console and open the CloudFront console at
https://console.amazonaws.cn/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 choose
Disable distribution to confirm.
-
Wait until the new timestamp appears
under the Last modified column.
-
Choose Delete, Delete distribution.
To delete a distribution tenant
Sign in to the Amazon Web Services Management Console and open the CloudFront console at
https://console.amazonaws.cn/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 Amazon Web Services Management Console and open the CloudFront console at
https://console.amazonaws.cn/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 already
Disabled, 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 choose
Yes, Disable to confirm. Then choose Close.
-
Wait until the new timestamp appears
under the Last modified column.
-
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.