aws / aws/aws-cli

aws s3 rm flag to remove all versions

Open
#4,070 4 comments 42 reactions 0 assignees View on GitHub
feature-request p3 s3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

The S3 console has the 'empty' button which deletes all objects and versions thereof to clear a bucket before removal. This is very useful for cleaning up temporary buckets.

`aws s3 rm --recursive s3://mybucket` doesn't work the same as "empty the versions, and there isn't a flag to remove all versions, so it's hard to automate complete S3 bucket removal.

Perhaps a flag `--all-versions` to `rm` could be added, to allow this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.