DELETE Bucket¶
The DELETE Bucket operation deletes a named bucket only if the bucket is empty.
Note
Before a bucket can be deleted, all object must be deleted from the bucket and all ongoing multipart uploads must be aborted.
Requests¶
Request Syntax
DELETE / HTTP/1.1
Host: {{BucketName}}.{{ConnectorName}}.{{StorageService}}.com
Date: {{date}}
Authorization: {{authenticationInformation}
Request Parameters
The DELETE Bucket operation does not use Request Parameters.
Request Headers
Implementation of the DELETE Bucket operation uses only request headers that are common to all operations (refer to Common Request Headers).
Request Elements
The DELETE Bucket operation does not use request elements.
Responses¶
Response Headers
Implementation of the DELETE Bucket operation uses only response headers that are common to all operations (refer to Common Response Headers).
Response Elements
The DELETE Bucket operation does not return response elements.
Host: documentation.s3.scality.com
Date: Tue, 21 Jun 2011 12:12:34 GMT
Examples¶
Deleting the “documentation” Bucket
Request Sample
DELETE / HTTP/1.1
Host: documentation.s3.scality.com
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-Type: application/octet-stream
Cache-Control: no-cache
Connection: close