Removes the server-side encryption configuration from a bucket.
Prerequisites
Before you run this command, make sure you have:
The
oss:DeleteBucketEncryptionpermission (Alibaba Cloud accounts have this permission by default; Resource Access Management (RAM) users and Security Token Service (STS) identities require an explicit policy grant)ossutil installed and configured with valid credentials
For instructions on granting this permission to a RAM user, see Attach a custom policy to a RAM user.
Syntax
ossutil api delete-bucket-encryption --bucket <bucket-name> [flags]Parameters inside [] are optional. For supported global flags, see Global command-line options.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | The name of the bucket whose encryption rules you want to delete. |
This command maps to the DeleteBucketEncryption API operation.
Examples
Remove the encryption configuration from a bucket
ossutil api delete-bucket-encryption --bucket examplebucket