Deletes the bucket policy from an Object Storage Service (OSS) bucket.
Prerequisites
Before you begin, ensure that you have:
-
The
oss:DeleteBucketPolicypermission granted to your RAM user. For more information, see Attach a custom policy to a RAM user
Command syntax
ossutil api delete-bucket-policy --bucket value [flags]
Parameters
|
Parameter |
Type |
Required |
Description |
|
|
string |
Yes |
The name of the target bucket. |
Note
-
This command maps to the DeleteBucketPolicy API operation. See the API reference for additional parameter details.
-
For global command-line options, see Command-line options.
Examples
Delete the bucket policy from a bucket named examplebucket:
ossutil api delete-bucket-policy --bucket examplebucket
Output
This command returns no output on success.