All Products
Search
Document Center

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

Last Updated:Mar 20, 2026

Deletes the custom log field configuration (user_defined_log_fields) from the real-time logs of a bucket.

Permissions

Alibaba Cloud accounts have this permission by default. To run this command as a RAM user or with Security Token Service (STS) credentials, attach a policy that grants oss:DeleteUserDefinedLogFieldsConfig. See Attach a custom policy to a RAM user.

Syntax

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

Parameters

ParameterTypeDescription
--bucketstringName of the bucket.
Note

This command maps to the DeleteUserDefinedLogFieldsConfig API operation. For supported global flags, see Command-line options.

Example

Delete the user_defined_log_fields configuration from the real-time logs of examplebucket:

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