DeleteBucketLogging
Updated at:2025-11-03
API description
This API is designed to disable a bucket's access logging functionality.
Request
-
Request syntax
Plain Text1DELETE /?logging HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3Date: <Date> 4Authorization: <AuthorizationString> -
Request headers
No special parameters
-
Request parameters
No special parameters
Response
Notes
- If the source bucket specified in the request does not exist, a 404 error will be returned with the code "NoSuchBucket.\
- The requester must be the owner of the source bucket and have FULL_CONTROL permissions to disable the bucket's access logging function. Otherwise, BOS will return a 403 error with the error code AccessDenied.
- If the logging function is already disabled for the requested source bucket, an HTTP status code 204 will still be returned.
Example
-
Request example
Plain Text1DELETE /?logging HTTP/1.1 2Host: BucketName.bj.bcebos.com 3Date: Tue, 17 May 2016 08:36:52 GMT 4Authorization: AuthorizationString -
Response example
Plain Text1HTTP/1.1 204 No Content 2x-bce-request-id: 1a5fd81e-626b-45b3-a885-15fff9cd106c 3Date: Tue, 17 May 2016 08:36:52 GMT 4Connection: close 5Server: BceBos
