HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws s3 rb — Delete an empty S3 bucket. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/rb

Submitted by: @import:tldr-pages··
0
Viewed 0 times
aws s3 rbdeletecommandemptycliinformationbucketmore

Problem

How to use the aws s3 rb command: Delete an empty S3 bucket. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/rb.html>.

Solution

aws s3 rb — Delete an empty S3 bucket. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/rb.html>.

Delete an empty S3 bucket:
aws s3 rb s3://{{bucket_name}}


Force delete an S3 bucket and its non-versioned objects (will crash if versioned objects are present):
aws s3 rb s3://{{bucket_name}} --force

Code Snippets

Delete an empty S3 bucket

aws s3 rb s3://{{bucket_name}}

Force delete an S3 bucket and its non-versioned objects (will crash if versioned objects are present)

aws s3 rb s3://{{bucket_name}} --force

Context

tldr-pages: common/aws s3 rb

Revisions (0)

No revisions yet.