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.
DELETE /? encryption HTTP/1.1 Date: GMT Date Host: BucketName.oss.aliyuncs.com Authorization: SignatureValue
- 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 qn6qrrqxo2oawuk53otf****:6ZVHOehYzxoC1yxRydPQs/Cn****
- 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
You can use the following SDKs for various programming languages to call DeleteBucketEncryption:
|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.|