Deletes the encryption rules of a specific bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to delete the encryption rules of a bucket. If you want to use a RAM user or Security Token Service (STS) to delete the encryption rules of a bucket, you must have the oss:DeleteBucketEncryption permission. For more information, see Attach a custom policy to a RAM user.
Command syntax
ossutil api delete-bucket-encryption --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the bucket whose encryption rules you want to delete. |
-
The delete-bucket-encryption command corresponds to the DeleteBucketEncryption operation. For more information about the parameters in the DeleteBucketEncryption operation, see DeleteBucketEncryption.
-
For more information about supported global command-line options, see Global command-line options.
Examples
The following sample code provides an example on how to delete the encryption rules of a bucket named examplebucket:
ossutil api delete-bucket-encryption --bucket examplebucket