All Products
Search
Document Center

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

Last Updated:Nov 25, 2024

The delete-bucket-public-access-block command is used to delete the Block Public Access configurations of a bucket.

Usage notes

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

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 within, 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