LinuxCommandLibrary

aws-s3-rb

Delete an empty S3 bucket.

TLDR

Delete an empty S3 bucket

$ aws s3 rb s3://[bucket_name]
copy


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

Copied to clipboard