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.

gefragt vor einem Jahr3734 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen