Promo Center

50% off for new user

Direct Mail-46% off

Learn More

DeleteBucketLogging

Updated at: 2024-04-28 08:38

You can call this operation to delete the logging configurations for a bucket. Only the bucket owner is authorized to disable logging for the bucket.

Request syntax

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

Examples

Sample requests

DELETE /? logging HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com  
Date: Fri, 24 Feb 2012 05:35:24 GMT  
Authorization: OSS qn6q**************:77Dv****************
			

Sample success responses

Note

HTTP status code 204 is returned if the bucket has logging disabled.

HTTP/1.1 204 No Content 
x-oss-request-id: 534B371674E88A4D8906****
Date: Fri, 24 Feb 2012 05:35:24 GMT
Connection: keep-alive
Content-Length: 0  
Server: AliyunOSS

SDKs

The SDKs of the DeleteBucketLogging operation for various programming languages are as follows:

Error codes

Error code

HTTP status code

Description

Error code

HTTP status code

Description

NoSuchBucket

404

The error message returned because the specified bucket does not exist.

AccessDenied

403

The error message returned because you are not authorized to disable logging for the bucket. Only the bucket owner can disable logging for the bucket.

  • On this page (1, T)
  • Request syntax
  • Examples
  • SDKs
  • Error codes
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare