DeleteBucketCors
Updated at:2025-11-03
API description
The DeleteBucketCors API is used to disable the specified bucket's CORS function and remove all existing rules.
Permission
Only bucket owners and users with FULL_CONTROL permissions are authorized to delete CORS rules.
Request
-
Request syntax
Plain Text1DELETE /?cors HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3Date: Wed, 06 Apr 2016 06:34:40 GMT 4Authorization: <AuthorizationString> -
Request parameters
None
-
Request headers
No special header parameters
-
Request elements
None
Response
Notes
- If the specified bucket does not exist, a 404 Not Found error will be returned with the code "NoSuchBucket."
- If permission to delete CORS rules is denied, a 403 Forbidden error will be returned with the code "AccessDenied."
- If the specified bucket had no prior CORS rules, a 204 No Content response will be returned.
Example
-
Request example
Plain Text1 DELETE /?cors HTTP/1.1 2 Host: BucketName.bj.bcebos.com 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Authorization: AuthorizationString -
Response example
Plain Text1 HTTP/1.1 204 OK 2 x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Connection: close 5 Server: BceBos
