Available in Classic and VPC
Delete a bucket created in Object Storage.
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 Object 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.object.ncloudstorage.com