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.

已提问 1 年前3734 查看次数
1 回答
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则