All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Delete Bucket Policy

Last updated:2021-09-14 16:18:08

Description

This DELETE interface can delete the bucketpolicy configuration of a bucket. If you want to use this interface, you need to be the owner of this bucket. If the interface is called successfully, 204 will be returned.

Request

Grammar

DELETE /?policy HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Authorization: {SignatureValue}

Note:

Request parameters

The interface does not use request parameters.

Request header

This interface only uses common request headers. For more information, please click Public request headers

Request content

A JSON string describing the bucket policy.

Response header

This interface can use all common response headers. For more information, please click Public response headers.

Response content

Bucketpolicy configuration information, string in JSON format.

Special errors

The interface does not return any special errors.

Example

DELETE http://ks3-example.ks3-cn-beijing.ksyuncs.com/?policy HTTP/1.1
Host: ks3-cn-beijing.ksyun.com
Authorization: authorization string
Date: Tue, 19 Jul 2016 09:12:54 GMT

Response

HTTP/1.1 204 No Content
Date: Tue, 19 Jul 2016 09:28:34 GMT
Server: Tengine
X-Kss-Request-Id: a5398b800e3a4d498bb4a7e017ee9259
Content-Length: 0
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback