DELETE Bucket website

You can use this operation to delete the website configuration of a bucket.

Only users granted the s3:DeleteBucketWebsite permission can delete the bucket website configuration. By default, only the bucket owner can delete the bucket website configuration. The bucket owner can allow other users to delete the bucket website configuration by granting them the permission.

Request Syntax

DELETE /?website HTTP/1.1
User-Agent: agent
Host: bucketname.obs.example.com
Accept: */*
Date: date
Authorization: authorization

Request Parameters

This request involves no parameters.

Request Headers

This request uses common headers. For details about common request headers, see section Common Request Headers.

Request Elements

This request involves no elements.

Response Syntax

HTTP/1.1 status_code
 Server: Server Name
 x-amz-request-id: request id
 x-amz-id-2: id
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
 Date: date

Response Headers

This response uses common headers. For details about common response headers, see section Common Response Headers.

Response Elements

This response involves no elements.

Error Responses

No special error responses are returned. For details about error responses, see Table 1.

Sample Request

DELETE /?website HTTP/1.1
 User-Agent: curl/7.29.0
 Host: bucketname.obs.example.com
 Accept: */*
 Date: Sat, 04 Jan 2014 06:55:26 +0000
 Authorization: AWS C6630CD15B645CB8A3BA:iWz49B3sO2HTFlcsKdEsSULl5GI=

Sample Response

HTTP/1.1 204 No Content
 Server: OBS
 x-amz-request-id: DCD2FC9CAB78000001435C08F1018EDD
 x-amz-id-2: QeEqZzxKPinUt9LmE9sFGcR+5xCpm2HoqFCqFFuFAB9Y84NcX6/MjhZqpN0+cE2P
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
 Date: Sat, 04 Jan 2014 06:55:26 GMT