Menu
Amazon Simple Storage Service
API Reference (API Version 2006-03-01)

DELETE Bucket website

Description

This operation removes the website configuration for a bucket. Amazon S3 returns a 200 OK response upon successfully deleting a website configuration on the specified bucket. You will get a 200 OK response if the website configuration you are trying to delete does not exist on the bucket. Amazon S3 returns a 404 response if the bucket specified in the request does not exist.

This DELETE operation requires the S3:DeleteBucketWebsite permission. By default, only the bucket owner can delete the website configuration attached to a bucket. However, bucket owners can grant other users permission to delete the website configuration by writing a bucket policy granting them the S3:DeleteBucketWebsite permission.

For more information about hosting websites, go to Hosting Websites on Amazon S3 in the Amazon Simple Storage Service Developer Guide .

Requests

Syntax

Copy
DELETE /?website HTTP/1.1 Host: bucketname.s3.amazonaws.com Date: date Authorization: authorization string (see Authenticating Requests (AWS Signature Version 4))

Request Parameters

This implementation of the operation does not use request parameters.

Request Headers

This implementation of the operation uses only request headers that are common to all operations. For more information, see Common Request Headers.

Request Elements

This operation does not use request elements.

Responses

Response Headers

This implementation of the operation uses only response headers that are common to most responses. For more information, see Common Response Headers.

Response Elements

This implementation of the operation does not return response elements.

Examples

Sample Request

This request deletes the website configuration on the specified bucket.

Copy
DELETE ?website HTTP/1.1 Host: example-bucket.s3.amazonaws.com Date: Thu, 27 Jan 2011 12:00:00 GMT Authorization: signatureValue

Sample Response

Copy
HTTP/1.1 204 No Content x-amz-id-2: aws-s3integ-s3ws-31008.sea31.amazon.com x-amz-request-id: AF1DD829D3B49707 Date: Thu, 03 Feb 2011 22:10:26 GMT Server: AmazonS3