class Aws::S3::ObjectSummary::Collection
def batch_delete!(options = {})
-
(void)
-
Options Hash:
(**options)
-
:checksum_algorithm
(String
) -- -
:expected_bucket_owner
(String
) -- -
:bypass_governance_retention
(Boolean
) -- -
:request_payer
(String
) -- -
:mfa
(String
) --
Parameters:
-
options
({}
) --
Other tags:
- Example: Request syntax with placeholder values -
def batch_delete!(options = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash(options) params[:bucket] = batch[0].bucket_name params[:delete] ||= {} params[:delete][:objects] ||= [] batch.each do |item| params[:delete][:objects] << { key: item.key } end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.delete_objects(params) end end nil end