Deletes the S3 bucket. All objects (including all object versions and delete markers) in
the bucket must be deleted before the bucket itself can be deleted.
The following operations are related to DeleteBucket:
Base exception class for all service exceptions from S3 service.
Example
To delete a bucket
// The following example deletes the specified bucket. constinput = { "Bucket":"forrandall2" }; constcommand = newDeleteBucketCommand(input); awaitclient.send(command); // example id: to-delete-a-bucket-1473108514262
Deletes the S3 bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.
The following operations are related to
DeleteBucket
:CreateBucket
DeleteObject
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteBucketCommandInput
Returns
DeleteBucketCommandOutput
See
input
shape.response
shape.config
shape.Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example
To delete a bucket