All Products
Search
Document Center

Object Storage Service:close-meta-query

Last Updated:Mar 19, 2026

Disables the metadata management feature for a bucket.

Usage notes

  • By default, Alibaba Cloud accounts have permission to disable the metadata management feature. To disable the feature using a RAM user or Security Token Service (STS), the RAM user or STS identity must have the oss:CloseMetaQuery permission. For more information, see Attach a custom policy to a RAM user.

  • Disabling the metadata management feature deletes the metadata index library for the bucket. After deletion, metadata indexing is no longer available for the bucket.

Command syntax

ossutil api close-meta-query --bucket <value> [flags]

Parameters

ParameterTypeRequiredDescription
--bucketstringYesThe name of the bucket for which you want to disable the metadata management feature.
The close-meta-query command maps to the CloseMetaQuery API operation. For supported global flags, see Global command-line options.

Examples

Disable the metadata management feature for a bucket named examplebucket:

ossutil api close-meta-query --bucket examplebucket