Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteBucketCommand

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

example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, DeleteBucketCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, DeleteBucketCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const command = new DeleteBucketCommand(input);
const response = await client.send(command);
see

DeleteBucketCommandInput for command's input shape.

see

DeleteBucketCommandOutput for command's response shape.

see

config for command's input shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteBucketCommandInput, DeleteBucketCommandOutput>