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 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.
Related Resources
CreateBucket
DeleteObject
Example
Use a bare-bones client and the command you need to make an API call.
See
input
shape.response
shape.config
shape.Example
To delete a bucket