In Amazon CloudFront, your content is organized as "Distributions". A distribution is a link between the origin server and the domain name (assigned by
), 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:
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.
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.
To delete a Distribution with Multiple Origin Servers using CloudFront API - PUT Distribution Config, GET Distribution Config and DELETE Distribution
GET Distribution Config
request to get the distribution configuration.
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
PUT Distribution Config
request to disable the distribution.
As distribution gets deployed, submit a
request to delete distribution.
DELETE Distribution Request
value from ETag header in previous GET or PUT response
AWS authentication string
Other required headers
Delete Multi Origin download distribution using Bucket Explorer :
Run Bucket Explorer.
"Distribution -> List Distribution"
icon from Bucket table toolbar or you can do the same by right clicking on any bucket and then click on
It displays a window with list of already created distributions.
To delete distribution, select a particular distribution from List distribution table and click on "Delete" icon from toolbar of List distribution window.
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.
Now click on
button to delete distribution.
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
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
, you can delete this distribution using step 4.
You can also use update feature to disable distribution.