All Products
Search
Document Center

Object Storage Service:delete-user-defined-log-fields-config

Last Updated:Feb 24, 2025

The delete-user-defined-log-fields-config command is used to delete the custom configurations of the user_defined_log_fields field from the real-time logs of a bucket.

Note

By default, an Alibaba Cloud account has the permissions to delete custom configurations for buckets. Deleting configurations as a RAM user or by using Security Token Service (STS) requires the oss:DeleteUserDefinedLogFieldsConfig permission. For more information, see Attach a custom policy to a RAM user.

Syntax

ossutil api delete-user-defined-log-fields-config --bucket value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

Note
  • The delete-user-defined-log-fields-config command corresponds to the DeleteUserDefinedLogFieldsConfig operation. For more information about the parameters within, see DeleteUserDefinedLogFieldsConfig.

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

Example

Run the following command to delete the custom configurations of the user_defined_log_fields field from the real-time logs of examplebucket.

ossutil api delete-user-defined-log-fields-config --bucket examplebucket