DeleteBucket
Deletes the S3 bucket. All objects in the bucket must be deleted before the bucket itself can be deleted.
Permissions
Action | Description | Resource |
---|---|---|
DeleteBucket | Grants permission to delete a bucket | bucket |
The following operations are related to DeleteBucket
:
Request Syntax
DELETE /Bucket HTTP/1.1
Host: <partition>.s3.astran.io
URI Request Parameters
The request uses the following URI parameters.
Specifies the bucket being deleted.
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
Examples
This request deletes the bucket named quotes
.
DELETE /quotes HTTP/1.1
Host: <partition>.s3.astran.io
Date: Wed, 01 Mar 2006 12:00:00 GMT
Authorization: authorization string
HTTP/1.1 204 No Content
x-request-id: 32FE2CEB32F5EE25
Date: Wed, 01 Mar 2006 12:00:00 GMT
Connection: close
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: