DeleteBucket
Deletes an empty S3 bucket. Non-empty bucket attempts return an error.
Stored Procedure-Specific Information
This procedure deletes a bucket and is equivalent to a DELETE on the Buckets table. Amazon S3 requires the bucket to be empty before it can be deleted. Set ExpectedBucketOwner to require that the bucket belongs to a specific AWS account before the deletion proceeds.The following example deletes a bucket:
EXECUTE DeleteBucket
@Bucket='BucketName'
Input
| Name | Type | Required | Description |
| Bucket | String | True | The name of the bucket to delete. |
| ExpectedBucketOwner | String | False | The AWS account ID expected to own the bucket. The request fails if the actual owner does not match. |
Result Set Columns
| Name | Type | Description |
| Bucket | String | The name of the deleted bucket. |
| Status | String | Indicates the result of the operation. |