Deletes the Block Public Access configuration from a bucket.
This command calls the DeleteBucketPublicAccessBlock API operation.
Prerequisites
You must have the oss:DeleteBucketPublicAccessBlock permission. This permission can be granted to an Alibaba Cloud account, a RAM user, or a Security Token Service (STS) credential. For instructions on attaching a custom policy, see Attach a custom policy to a RAM user.
Synopsis
ossutil api delete-bucket-public-access-block --bucket <value> [flags]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket |
string | Yes | The name of the bucket whose Block Public Access configuration to delete. |
This command has no command-specific flags. [flags] refers to global options only. For the full list, see Command-line options.
Output
This command produces no output.
Examples
To delete the Block Public Access configuration from a bucket
The following example deletes the Block Public Access configuration from examplebucket:
ossutil api delete-bucket-public-access-block --bucket examplebucket
To verify the deletion
After deleting the configuration, verify the change by retrieving the current Block Public Access status:
ossutil api get-bucket-public-access-block --bucket examplebucket
If the deletion succeeded, the response indicates that Block Public Access is no longer configured for the bucket.
API reference
This command calls the DeleteBucketPublicAccessBlock API operation.
See also
-
put-bucket-public-access-block -- Sets the Block Public Access configuration for a bucket.
-
get-bucket-public-access-block -- Retrieves the Block Public Access configuration for a bucket.