lib/dynamoid/adapter_plugin/aws_sdk_v2.rb
def batch_delete_item(options)
        options.each_pair do |table_name, ids|
          table = describe_table(table_name)
          ids.each do |id|
            client.delete_item(table_name: table_name, key: key_stanza(table, *id))
          end
        end
        nil
      end
# Delete many items at once from DynamoDB. More efficient than delete each item individually.
#
# @example Delete IDs 1 and 2 from the table testtable
#   Dynamoid::Adapter::AwsSdk.batch_delete_item('table1' => ['1', '2'])
#or
#   Dynamoid::Adapter::AwsSdkV2.batch_delete_item('table1' => [['hk1', 'rk2'], ['hk1', 'rk2']]]))
#
# @param [Hash] options the hash of tables and IDs to delete
#
# @return nil
#
# @todo: Provide support for passing options to underlying delete_item http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Client.html#delete_item-instance_method
Delete many items at once from DynamoDB. More efficient than delete each item individually.

@param [Hash] options the hash of tables and IDs to delete

@return nil


Delete many items at once from DynamoDB . More efficient than delete each item individually . @param [ Hash ] options the hash of tables and IDs to delete @return nil
def batch_delete_item(options)
        options.each_pair do |table_name, ids|
          table = describe_table(table_name)
          ids.each do |id|
            client.delete_item(table_name: table_name, key: key_stanza(table, *id))
          end
        end
        nil
      end
def batch_delete_item ( options ) options . each_pair do | table_name , ids | table = describe_table ( table_name ) ids . each do | id | client . delete_item ( table_name : table_name , key : key_stanza ( table , * id ) ) end end nil end
Delete many items at once from DynamoDB.
Delete many items at once from DynamoDB .
options