title: DynamoDB Python 2.7 Lambda function - remove item from list
body: <p>I have a "users" table, each one has a user name (the key value) and a <strong>list</strong> of items (each one represented by ID, a number).</p>
  
  <p>I wrote a function for adding an item with a given ID to the list.</p>
  
  <p>Now, I want to delete a given item from the list. Meaning, given the ID and the user name, I want to delete this item from the user's list. I already tried using the "update_item" function with an "UpdateExpression" and using "REMOVE", but it only accepts int as an index and not a variable.</p>
  
  <p>I tried multiple solutions, with no success.</p>
  
  <p>Any help would be greatly appreciated.</p>