Delete a distribution - Amazon CloudFront

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 Deleting 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).

To delete a CloudFront distribution
  1. Sign in to the AWS Management Console and open the CloudFront console at https://console.aws.amazon.com/cloudfront/v4/home.

  2. In the right pane of the CloudFront console, find the distribution that you want to delete.

    • If the Status column shows 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.

  3. In the right pane of the CloudFront console, select the check box for the distribution that you want to delete.

  4. Choose Disable to disable the distribution, and choose Yes, Disable to confirm. Then choose Close.

    • The value of the Status column immediately changes to Disabled.

  5. 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.

  6. Select the check box for the distribution that you want to delete.

  7. 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.