Help Center/ Object Storage Service/ Tools Guide/ obsutil/ Bucket Commands/ Deleting the Encryption Configuration of a Bucket
Updated on 2026-09-20 GMT+08:00

Deleting the Encryption Configuration of a Bucket

Function

You can use this command to delete the encryption configuration of a bucket.

Constraints

To delete the encryption configuration of a bucket, you must be the bucket owner or have the required permission (obs:bucket:PutEncryptionConfiguration granted using IAM or PutEncryptionConfiguration granted using a bucket policy). For details, see Differences Between OBS Permissions Control Methods, Using IAM Roles or Policies to Grant Access to OBS, and Creating a Custom Bucket Policy.

Command Line Structure

  • Windows
    obsutil encryption obs://bucket -method=delete [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx]
  • macOS or Linux
    ./obsutil encryption obs://bucket -method=delete [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx]

Examples

  • In Windows, run obsutil encryption obs://test-bucket -method=delete to delete the encryption configuration of bucket examplebucket.
    obsutil encryption obs://test-bucket -method=delete
    
    Start at 2024-09-30 07:59:28.8675681 +0000 UTC
    
    Delete encryption configuration succeed for bucket [test-bucket], requestId is [0000019AB6164BF640193DD27017272F]

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory

The bucket name

method

Mandatory

The method. Set it to delete when you delete the encryption configuration of a bucket.

config

Optional (additional parameter)

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

e

Optional (additional parameter)

The endpoint

i

Optional (additional parameter)

The user's AK

k

Optional (additional parameter)

The user's SK

t

Optional (additional parameter)

The user's security token

Helpful Links