LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aws-s3-rb

Remove S3 buckets

TLDR

Delete an empty S3 bucket
$ aws s3 rb s3://[bucket-name]
copy
Force delete a bucket and all its non-versioned objects
$ aws s3 rb s3://[bucket-name] --force
copy
Delete a bucket in a specific region
$ aws s3 rb s3://[bucket-name] --region [us-east-1]
copy

SYNOPSIS

aws s3 rb S3Uri [--force] [options]

DESCRIPTION

aws s3 rb (remove bucket) deletes an S3 bucket. By default, the bucket must be completely empty of objects before it can be deleted.Use the --force option to automatically delete all non-versioned objects in the bucket before removing the bucket itself. This is a destructive operation that cannot be undone.

PARAMETERS

S3Uri

The S3 URI of the bucket to delete (s3://bucket-name)
--force
Delete all objects in the bucket before deleting the bucket itself

INSTALL

sudo dnf install aws
copy
sudo pacman -S aws-cli
copy
sudo apk add aws-cli
copy
sudo zypper install aws-cli
copy

CAVEATS

The --force option only deletes non-versioned objects. If the bucket contains versioned objects or delete markers, the bucket deletion will fail even with --force. For buckets with versioning enabled, use aws s3api delete-object with --version-id to remove all object versions first, or configure a lifecycle policy to expire versions. Bucket deletion is permanent and the bucket name becomes available for others to use.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid