All Products
Search
Document Center

Object Storage Service:delete-bucket-encryption

Last Updated:Mar 20, 2026

Removes the server-side encryption configuration from a bucket.

Prerequisites

Before you run this command, make sure you have:

  • The oss:DeleteBucketEncryption permission (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

ParameterTypeRequiredDescription
--bucketstringYesThe 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