Can't remove an element from a list using UpdateItem
<p>I'm trying to remove a <code>LIST</code> element from an <code>ITEM</code> in my DynamoDB table. I believe I have the correct setup, but can't seem to pass an integer.</p>

<pre><code>var params = {
  TableName: DB_TABLE_NAME,
  Key:{
    "Key": KEY_VALUE
  },
  UpdateExpression: "REMOVE List[:n]",
  ExpressionAttributeValues: {
    ":n": 1
  },
  ReturnValues:"UPDATED_NEW"
};
</code></pre>

<p>I then run the UpdateItem function, which I use for other use cases.</p>

<pre><code>db.update(params, (err, data) =&gt; {
  console.log(data);
});
</code></pre>

<p>The following error is returned</p>

<pre><code>"message": "Invalid UpdateExpression: Syntax error; token: \":n\", near: \"[:n]\"",
</code></pre>

<p>When I remove <code>ExpressionAttributeValues</code> and replace <code>:n</code> with the value 1 (which references an existing List element), it successfully executes.</p>

<p>I'm obviously missing something here, any help would be greatly appreciated, thanks!</p>