DeleteBucketcors is used to turn off the CORS function for the specified bucket and clear all rules.

Request syntax

DELETE /? cors HTTP/1.1
Date: GMT Date
Authorization: SignatureValue

Detail analysis

  • If the bucket does not exist, OSS returns the 404 no content error, error code: NoSuchBucket.
  • Only the owner of the bucket can delete the CORS rules corresponding to the bucket. If you try to operate a bucket which does not belong to you, OSS returns the 403  Forbidden error, error code: accessdenied.


Request example:

DELETE /? cors HTTP/1.1
Date: Fri, 24 Feb 2012 05:45:34 GMT  
Authorization: OSS qn6qrrqxo2oawuk53otfjbyc:LnM4AZ1OeIduZF5vGFWicOMEkVg=

Response example:

HTTP/1.1 204 No Content 
x-oss-request-id: 5051845BC4689A033D0022BC
Date: Fri, 24 Feb 2012 05:45:34 GMT
Connection: keep-alive
Content-Length: 0  
Server: AliyunOSS