DeleteBucketStaticWebsite
Updated at:2025-11-03
API description
This API is intended to delete a bucket's static website hosting configuration and disable its static website hosting functionality.
Users must possess FULL_CONTROL permissions for the bucket.
Request
-
Request headers
No special parameters
-
Request syntax
Plain Text1 DELETE /?website HTTP/1.1 2 Host: <BucketName>.bj.bcebos.com 3 Date: <Date> 4 Authorization: <AuthorizationString>
Response
Example
-
Response example
Plain Text1HTTP/1.1 204 No Content 2Date: Wed, 14 Sep 2016 05:37:16 GMT 3x-bce-request-id: 1a5fd81e-626b-45b3-a885-15fff9cd106c 4Connection: keep-alive 5Server: BceBos -
Return codes
| Result | http status | error code | Description |
|---|---|---|---|
| Succeeded | 204 | - | - |
| The static website hosting function is disabled. | 501 | StaticWebSiteIsDisable | In other words, it is not allowed to enable the static website hosting function for the bucket of this region. |
| Other errors, following previous error codes of BOS. | - | Refer to Error Codes | - |
