delete_item
Remove a single item from a DynamoDB table by specifying its full primary key. Add a condition to confirm the item exists before deletion.
Instructions
Delete a single item from a DynamoDB table by its primary key.
The item is permanently removed. Use condition_expression to ensure the item exists before deleting.
When to use:
To remove a specific item from a table
When you know the item's full primary key
When NOT to use:
To delete all items (use prune_table instead)
To delete by non-key attributes (scan first, then delete)
Returns: JSON confirmation with the deleted item's key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |