How to delete all version objects except for current version in specification bukets of S3

0

About title, I want to run it on the AWS console if possible.

asked a year ago3573 views
1 Answer
0

You can use Amazon S3 Lifecycle for deleting non-current versions of your objects. Read more about Managing your storage lifecycle.

The NoncurrentVersionExpiration action element of the lifecycle actions instructs Amazon S3 to permanently delete noncurrent versions of objects. Configure a lifecycle for your S3 bucket with a specific action date that is in the past. With this, all qualified objects become immediately eligible for that Lifecycle action, so the non-current versions of the objects will be deleted just after you activate the Lifecycle. After that, you can remove the Lifecycle if you want to keep all future non-current object versions.

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions