title: boto dynamodb batch_write and delete_item -- 'The provided key element does not match the schema'
body: <p>I'm trying to delete a large number of items in a DynamoDB table using boto and python. My Table is set up with the primary key as a device ID (think MAC address.) There are multiple entries in the table for each device ID, as the secondary key is a UNIX timestamp.</p>
  
  <p>From my reading this code should work:</p>
  
  <pre><code>from boto.dynamodb2.table import Table
  
  def delete_batch(self, guid):    
      table = Table('Integers')
  
      with table.batch_write() as batch:
          batch.delete_item(Id=guid)
  </code></pre>
  
  <p>Source: <a href="http://docs.pythonboto.org/en/latest/dynamodb2_tut.html#batch-writing" rel="nofollow">http://docs.pythonboto.org/en/latest/dynamodb2_tut.html#batch-writing</a></p>
  
  <p>However it returns 'The provided key element does not match the schema' as the error message.</p>
  
  <p>I suspect the problem is because guid is not unique in my table.</p>
  
  <p>Given that, is there way to delete multiple items with the same primary key without specifying the secondary key?</p>