All Products
Search
Document Center

Object Storage Service:DeleteBucketEncryption

Last Updated:Jun 15, 2026

Deletes the encryption rules configured for a bucket.

Notes

To call DeleteBucketEncryption, you must have the oss:DeleteBucketEncryption permission. For more information, see Grant a custom policy.

Note

Only the bucket owner or authorized RAM users can delete bucket encryption rules. Otherwise, OSS returns the 403 error. For more information about bucket encryption, see Server-side encryption.

Request syntax

DELETE /? encryption HTTP/1.1
Date: GMT Date
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue

Request headers

DescribeRegions uses only common request headers. For more information, see Common request headers.

Response headers

The response contains only common response headers. For more information, see Common response headers.

Examples

  • Sample request

    DELETE /? encryption HTTP/1.1
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com
    Date: Thu, 17 Apr 2025 11:35:24 GMT
    Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e
  • Sample response

    HTTP/1.1 204 OK
    x-oss-request-id: 5C22E0EFD127F6810B1A****
    Date: Tue, 20 Dec 2018 11:37:05 GMT
    Connection: keep-alive
    Content-Length: 0

OSS SDKs

The following SDKs for various programming languages support DeleteBucketEncryption:

ossutil

For the ossutil command that corresponds to DeleteBucketEncryption, see delete-bucket-encryption.

Error codes

Error code

HTTP status code

Description

AccessDenied

403

You do not have permissions to delete the encryption rules configured for the bucket.

NoSuchBucket

404

The specified bucket does not exist.