aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Deleting all versions of objects

Open rakshil14-2 opened this issue 4 months ago • 0 comments

Issue :https://github.com/aws/aws-cli/issues/4070

Description of changes: Added a flag for deleting all versions of an object present in a versioned-enable bucket. For dealing with versions, a list-object-versions api is called to get the version ids as well as delete markers of the objects. Once the object and their version ids are retrieved, then a batch of objects with their version id is created which is passed to delete-objects api for deletion.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rakshil14-2 avatar Aug 03 '25 22:08 rakshil14-2