title: Delete all items in DynamoDB table using Ruby
body: <p>I'm trying to write a simple ruby script that delete all items in a DynamoDB table, but I'm having trouble understand which argument to pass to "delete_items", this is what I have so far:</p>
  
  <pre><code>dynamoDB = Aws::DynamoDB::Resource.new(region: 'us-west-2')
  
  dynamoDB.tables.each do |table|
    puts "Table #{table.name}"
    scan_output = table.scan({
      select: "ALL_ATTRIBUTES"
      })
  
    scan_output.items.each do |item|
      keys = item.keys
      table.delete_item({
        key: ???
      })
    end
  end 
  </code></pre>
  
  <p>I tried passing the item, or item.keys - both did not work.</p>
  
  <p>Thanks!</p>