Need to remove a list item from a DynamoDb database in a react app using its index.
Going by the example in https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.Js.03.html , Update an Item (Conditionally)
The update expression for removing an item is
UpdateExpression: "remove info.actors[0]",
What is the update expression when the index value is a parameter to the function?