delete-bucket-policy
Updated at:
Copy as MD
Deletes the bucket policy for a specified bucket.
Usage notes
To delete a bucket policy, you must have the following permissions:
-
General buckets:
oss:DeleteBucketPolicy -
Vector buckets:
ossvector:DeleteBucketPolicy
To grant the required permissions, Grant a custom policy.
Syntax
ossutil api delete-bucket-policy --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The bucket name. |
Note
-
The delete-bucket-policy command calls the DeleteBucketPolicy API. DeleteBucketPolicy.
-
For supported global options, Global command-line options.
Examples
General bucket
Delete the bucket policy of examplebucket:
ossutil api delete-bucket-policy --bucket examplebucket
Vector bucket
Delete the bucket policy of the vector bucket vectorexample:
ossutil vectors-api delete-bucket-policy --bucket vectorel l l l l l l l lo i ko i ko ii k iuxample
Is this page helpful?