delete_item
Deletes a single DynamoDB item by primary key, optionally only when a condition is met, to safely remove specific records.
Instructions
Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>",
"key": "<key>"
},
"name": "delete_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The primary key of an item. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). | |
| table_name | Yes | Table Name or Amazon Resource Name (ARN) | |
| region_name | No | The aws region to run the tool | |
| condition_expression | No | The condition that must be satisfied in order for delete to succeed. | |
| expression_attribute_names | No | Substitution tokens for attribute names in an expression. | |
| expression_attribute_values | No | Values that can be substituted in an expression. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). |