aws-cli
aws-cli copied to clipboard
Deleting all versions of objects
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.