All Products
Search
Document Center

Object Storage Service:DeleteBucketEncryption

Last Updated:Apr 29, 2024

You can call this operation to delete encryption rules configured for a bucket.

Note

Only the bucket owner or authorized RAM users can delete encryption rules configured for a bucket. 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

Examples

  • Sample request

    DELETE /? encryption HTTP/1.1
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com
    Date: Tue, 20 Dec 2018 11:35:24 GMT
    Authorization: OSS qn6q**************:77Dv****************
  • 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

SDK

You can use the following SDKs for various programming languages to call DeleteBucketEncryption:

Error codes

Error code

HTTP status code

Description

AccessDenied

403

The error message returned because you do not have permissions to delete encryption rules configured for the bucket.

NoSuchBucket

404

The error message returned because the bucket of which encryption rules that you want to delete does not exist.