delete-bucket

Prev Next

The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

Available in Classic and VPC

Delete a Ncloud Storage bucket. You can only delete empty buckets.

Note

For a Sub Account user to execute this command, they must have the Change/DeleteBucket action permission.

Syntax

The delete-bucket syntax is as follows:

aws s3api delete-bucket \
    --bucket <bucket> \
    --endpoint-url <endpoint-url>

Options

This section describes the options available when running delete-bucket.

Required options

The following options are required for delete-bucket.

Options Type Required Description
--bucket String Required Bucket name

Common options

For information about the options common to all aws subcommands, see Ncloud Storage options.

Examples

If the bucket deletion request is successful, the bucket is deleted, and no result is displayed.

Command

The command example is as follows:

aws s3api delete-bucket --bucket my-temp-bucket \
    --endpoint-url=https://kr.ncloudstorage.com

Related commands

Related commands are as follows: