Class: Aws::S3::ObjectSummary::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::S3::ObjectSummary::Collection
- Defined in:
- lib/aws-sdk-s3/object_summary.rb
Batch Actions collapse
Instance Method Details
#batch_delete!(options = {}) ⇒ void
This method returns an undefined value.
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 |
# File 'lib/aws-sdk-s3/object_summary.rb', line 1004 def batch_delete!( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:bucket] = batch[0].bucket_name params[:delete] ||= {} params[:delete][:objects] ||= [] batch.each do |item| params[:delete][:objects] << { key: item.key } end batch[0].client.delete_objects(params) end nil end |