Skip to main content

rb

The aws s3 rb command is used to remove an empty bucket from Amazon S3. This command is critical for managing the lifecycle of your storage resources in AWS. Before using this command, ensure that the bucket you wish to delete is empty.

Syntax

aws s3 rb s3://bucketname

Options

  • s3://bucketname: The name of the bucket you want to remove.

  • --force: This option deletes all objects in the bucket before removing the bucket itself.

See also the original AWS documentation.