CmdID / aws / aws dynamodb
aws dynamodb delete-item
Deletes a single item in a table by primary key. AWS CLI reference
10 options Its page in the AWS CLI reference
Options
--condition-expressionA condition that must be satisfied in order for a conditional DeleteItem to succeed.--conditional-operator, --expectedThis is a legacy parameter.--expression-attribute-namesOne or more substitution tokens for attribute names in an expression.--expression-attribute-valuesOne or more values that can be substituted in an expression.--keyA map of attribute names to AttributeValue objects, representing the primary key of the item to delete.--return-consumed-capacityDetermines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response: INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.--return-item-collection-metricsDetermines whether item collection metrics are returned.--return-values-on-condition-check-failureAn optional parameter that returns the item attributes for a DeleteItem operation that failed a condition check.--return-valuesUse ReturnValues if you want to get the item attributes as they appeared before they were deleted.--table-nameThe name of the table from which to delete the item.