Delete Bucket Website

Last Updated: Mar 20, 2017

The Delete Bucket Website interface is used to disable the static website hosting mode of a bucket.

Request syntax

  1. DELETE /?website HTTP/1.1
  2. Host: BucketName.oss-cn-hangzhou.aliyuncs.com
  3. Date: GMT Date
  4. Authorization: SignatureValue

Detail analysis

  1. If the bucket does not exist, the error 404 No Content with the error code: NoSuchBucket will be returned.
  2. Only the bucket owner can disable the bucket’s static website hosting mode. If you try to operate a bucket which does not belong to you, OSS returns the error 403 Forbidden with the error code: AccessDenied.

Example

Request example:

  1. DELETE /?website HTTP/1.1
  2. Host: oss-example.oss-cn-hangzhou.aliyuncs.com
  3. Date: Fri, 24 Feb 2012 05:45:34 GMT
  4. Authorization: OSS qn6qrrqxo2oawuk53otfjbyc:LnM4AZ1OeIduZF5vGFWicOMEkVg=

Response example:

  1. HTTP/1.1 204 No Content
  2. x-oss-request-id: 534B371674E88A4D8906008B
  3. Date: Fri, 24 Feb 2012 05:45:34 GMT
  4. Connection: keep-alive
  5. Content-Length: 0
  6. Server: AliyunOSS
Thank you! We've received your feedback.