All Products
Search
Document Center

Object Storage Service:delete-bucket-logging

Last Updated:Aug 26, 2024

Disables logging for a bucket.

Usage notes

By default, an Alibaba Cloud account has the permissions to disable logging for a bucket. If you want to disable logging for a bucket by using a RAM user or Security Token Service (STS), you must have the oss:DeleteBucketLogging permission. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api delete-bucket-logging --bucket value [flags]

Parameter

Type

Description

--bucket

string

The name of the bucket for which you want to disable logging.

Note
  • The delete-bucket-logging command corresponds to the DeleteBucketLogging operation. For more information about the parameters in the DeleteBucketLogging operation, see DeleteBucketLogging.

  • For more information about supported global command-line options, see Global command-line options.

Examples

Run the following command to disable logging for a bucket named examplebucket:

ossutil api delete-bucket-logging --bucket examplebucket