If you already have
enabled CloudFront Logging
to deliver access logs per distribution to an Amazon S3 bucket, and when you request to remove CloudFront Logging on distribution, Amazon CloudFront stops writing detailed log information into an Amazon S3 bucket that you have specified. If you disable logging, Amazon CloudFront does not delete the log files already delivered to you. You will need to delete log files by yourself from the Bucket.
You can remove CloudFront Logging on distribution, by sending Http PUT Distribution Config Request, in one of the two ways explained below:
Remove Logging Using PUT Distribution:
If you are a programmer, you can write your own code to remove CloudFront Logging from distribution using PUT Distribution Config API.
Remove Logging Using Bucket Explorer:
If you do not want to write code, you can easily Remove Logging with Bucket Explorer using mouse clicks.
A. Remove Logging Using PUT Distribution
You can do PUT request to update distribution with logging
. For example, to disable logging in streaming distribution-
value from ETag header in previous GET response
AWS authentication string
Other required headers
<?xml version="1.0" encoding="UTF-8"?>
Amazon S3 bucket for logs
prefix for log file names
. . . <REMAINING XML Doc>
B. Simple steps to remove distribution logging using Bucket Explorer
Follow the steps below to Remove CloudFront Logging
Run Bucket Explorer.
button located in bucket toolbar.
It will open a List Distribution window.
Select any row from the list of distributions.
It will ask you to remove logging for the selected bucket.
to remove logging from the selected bucket.