DELETE Bucket

Deletes a named bucket.

All objects must be deleted from the bucket before the bucket itself can be deleted.

Request syntax

DELETE / HTTP/1.1
Host: BucketName.rs2.StorageService.com
Date: date
Authorization: signatureValue

Request headers

You can use the following request headers with the DELETE Bucket operation:
Authorization, Content-Length, Content-Type, Date, and Host.

The Authorization, Date, and Host headers are required; the others are optional.
For more information, see Request Headers.

Response headers

Response headers in a DELETE Bucket operation may include: Content-Length, Connection, Date, ETag, and Server.

For more information, see Response Headers.

 

Examples

Request sample
DELETE / HTTP/1.1
Host: documentation.demo.cloud.it
Date: Tue, 21 Jun 2011 12:12:34 GMT
Authorization: AWS pat:BAupPCpkyeIGKH2s5Je4Bc32bc=
Response sample
HTTP/1.1 204 No Content
Date: Tue, 21 Jun 2011 12:12:34 GMT
Server: RestServer/1.0
Content-Length: 0
Content-Type: application/octet-stream
Cache-Control: no-cache
Connection: close