How can I delete an item from a DynamoDB database from a Lambda function. I know how to put and item. Here is working code:
dynamo.putItem({
"TableName": "Table",
"Item": item
}, function(err, data) {
if (err) {
console.log("Failure: " + err);
context.succeed("Failure!");
context.done();
} else {
console.log("Success!");
context.succeed("Success!");
context.done();
}
});