Delete Bucket Logging

Last Updated: Mar 20, 2017

The Delete Bucket Logging interface is used to disable the access logging function of a bucket.

Request syntax

  1. DELETE /?logging HTTP/1.1
  2. Host: BucketName.oss-cn-hangzhou.aliyuncs.com
  3. Date: GMT Date
  4. Authorization: SignatureValue

Detail analysis

  1. If the bucket does not exist, the error 404 No Content with the error code: NoSuchBucket will be returned.
  2. Only the bucket owner can disable the access logging function for the bucket. If you try to operate a bucket which does not belong to you, OSS returns the error 403 Forbidden with the error code: AccessDenied.
  3. If the access logging function is not enabled for the target bucket, HTTP status code 204 is returned.

Example

Request example

  1. DELETE /?logging HTTP/1.1
  2. Host: oss-example.oss-cn-hangzhou.aliyuncs.com
  3. Date: Fri, 24 Feb 2012 05:35:24 GMT
  4. Authorization: OSS qn6qrrqxo2oawuk53otfjbyc:6ZVHOehYzxoC1yxRydPQs/CnMZU=

Return example

  1. HTTP/1.1 204 No Content
  2. x-oss-request-id: 534B371674E88A4D8906008B
  3. Date: Fri, 24 Feb 2012 05:35:24 GMT
  4. Connection: keep-alive
  5. Content-Length: 0
  6. Server: AliyunOSS
Thank you! We've received your feedback.