Skip to content

aws s3 rm flag to remove all versions #4070

@adamchainz

Description

@adamchainz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issues3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions