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

CloudFront - How to Delete Public Streaming Distribution (DELETE Streaming Distribution)?

Streaming distribution streams media files using Real-Time Messaging Protocol (RTMP) instead of accessing files using HTTP. If you no longer required your media files to be served via streaming distribution then you can delete public streaming distribution. You can create total 100 streaming and download distributions per AWS account. To create more distribution you have to delete existing distribution. Before deleting a distribution it must be disabled then only you can delete distribution from CloudFront.

You can delete a Public Streaming distribution, by sending HTTP GET Streaming Distribution Config, PUT Streaming Distribution Config and DELETE Streaming Distribution Requests to CloudFront, in one of the two following ways:

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

1. Delete Public Streaming Distribution Using REST API

To delete the streaming distribution, you need to follow these steps -

  1. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution similar to what we did in update distribution.
  2. Update the XML document returned in response to GET Streaming Distribution Config with value of Enabled to false.
  3. Submit a PUT Streaming Distribution Config request to update the distribution.
  4. As the Status is deployed, submit a DELETE Streaming Distribution request to delete.

Syntax:


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

2. Delete Public Streaming Distribution Using Bucket Explorer


Follow these steps to delete Streaming Distribution with Bucket Explorer:

  1. Run Bucket Explorer.
  2. List Distribution using option Distribution >> List Distribution .
  3. Select desired public streaming distribution to be updated and click on Delete button.
  4. It will open update streaming distribution panel.
  5. Deselect Enable Distribution check box and Update it.
  6. On update distribution, Active will be set as No and Status will be set as InProgress .
  7. As distribution get deployed, click on Delete . This time you will get a Delete button. Click on it.
  8. Your distribution gets deleted.