DeleteBucketCORS

Prev Next

Available in Classic and VPC

Delete the Cross-Origin Resource Sharing (CORS) settings applied to a bucket. No request body is used for the operation.

Caution

In the JP Region, DeleteBucketCORS is replaced by the ChangeBucketCORS permission.

Request

This section describes the request format. The method and URI are as follows:

Method URI
DELETE /{bucket-name}

Request syntax

The request syntax is as follows:

DELETE https://{endpoint}/{bucket-name}?cors= # path style
DELETE https://{bucket-name}.{endpoint}?cors= # virtual host style

Request headers

For information about the headers common to all Object Storage APIs, see Common Object Storage request headers.

Request path parameters

The following describes the parameters.

Field Type Required Description
bucket-name String Required Name of the bucket to delete the CORS settings from

Request query parameters

The following describes the parameters.

Field Type Required Description
cors String Required Declare deletion of CORS applied to the bucket
  • Enter only keys without values

Request example

The request example is as follows:

DELETE /apiary?cors= HTTP/1.1
Authorization: {authorization-string}
x-amz-date: 20161011T190354Z
Host: kr.object.ncloudstorage.com

Response

This section describes the response format.

Response headers

For information about the response headers common to all Object Storage APIs, see Common Object Storage response headers.

Response status codes

For information about the HTTP status codes common to all Object Storage APIs, see Object Storage response status codes.

Response example

The response example is as follows:

HTTP/1.1 204 No Content
Date: Thu, 25 Aug 2016 17:44:57 GMT
x-amz-request-id: 8ff4dc32-a6f0-447f-86cf-427b564d5855
Accept-Ranges: bytes