download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

CloudFront - How to Delete Distributions with Multiple Origin Servers (DELETE Distribution)?

In Amazon CloudFront, your content is organized as "Distributions". A distribution is a link between the origin server and the domain name (assigned by Amazon CloudFront ), and it tells you what are the locations of the original versions of your files. If you no longer need your data to be accessed via multiple origins of CloudFront, then you can delete distribution. You can create upto total 100 streaming and download distributions in one AWS account. If you want to create more, then you can delete the older Distributions. Before deleting a distribution it must be disabled. A disabled distribution can be deleted from CloudFront server.

You can delete a Multi Origin Download distribution, by sending HTTP GET Distribution Config, PUT Distribution Config and DELETE Distribution Requests to CloudFront Server, in one of the two ways explained below:

  1. Delete Multi Origin Download distribution using REST API - "GET Distribution Config, PUT Distribution Config and DELETE Distribution" : To delete distribution, you will need to create your own code to delete Multi Origin Download distribution using GET Distribution Config, PUT Distribution Config and DELETE Distribution REST APIs.
  2. Delete Multi Origin Download distribution using Bucket Explorer : If you want avoid writing thousands lines of code, you can delete Multi Origin Download distribution with Bucket Explorer in just few mouse clicks.


1. To delete a Distribution with Multiple Origin Servers using CloudFront API - PUT Distribution Config, GET Distribution Config and DELETE Distribution

  1. Submit a GET Distribution Config request to get the distribution configuration.
  2. To disable the CloudFront Distribution, you can change the value of Enabled tag to false by updating the XML document that returned in the response to GET Distribution Config request
  3. Submit a PUT Distribution Config request to disable the distribution.
  4. As distribution gets deployed, submit a DELETE Distribution request to delete distribution.

DELETE Distribution Request

DELETE /2013-05-12/distribution/ distribution ID HTTP/1.1
If-Match: value from ETag header in previous GET or PUT response
Authorization: AWS authentication string
Date: time stamp
Other required headers

2. Delete Multi Origin download distribution using Bucket Explorer :

  1. Run Bucket Explorer.
  2. Choose "Distribution -> List Distribution" icon from Bucket table toolbar or you can do the same by right clicking on any bucket and then click on "Manage Distribution" option.
  3. It displays a window with list of already created distributions.
  4. To delete distribution, select a particular distribution from List distribution table and click on "Delete" icon from toolbar of List distribution window.
  5. It opens a new window to delete distribution, which shows information like domain name, bucket name, Enabled/Disabled, CNAME and Comment associated with that distribution.
  6. Now click on "Delete" button to delete distribution.
  7. If you are trying to delete distribution which is enabled, you will get a message as "Distribution needs to be disabled. Disable distribution by un-checking 'Enable Distribution' option" .
    • Delete button toggles with "Update" button, clicking on which can disable that distribution.
    • After updating distribution, you need to wait till distribution gets status "Deployed" in place of "In Progress".
    • When you get status "Deployed" , you can delete this distribution using step 4.
    • You can also use update feature to disable distribution.