All Products
Search
Document Center

Object Storage Service:delete-bucket-public-access-block

Last Updated:Jun 22, 2026

Deletes the Block Public Access configurations of a bucket.

Usage notes

By default, an Alibaba Cloud account has permissions to delete the Block Public Access configurations of a bucket. To delete the configurations as a RAM user or by using Security Token Service (STS), you must have the oss:DeleteBucketPublicAccessBlock permission. For more information, see Grant a custom policy.

Command syntax

ossutil api delete-bucket-public-access-block --bucket value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

Note
  • The delete-bucket-public-access-block command corresponds to the DeleteBucketPublicAccessBlock operation. For more information about the parameters, see DeleteBucketPublicAccessBlock.

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

Example

Delete the Block Public Access configurations of examplebucket.

ossutil api delete-bucket-public-access-block --bucket examplebucket