Delete Item

POST {{aws_dynamodb_base_url}}/?Action=DeleteItem

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.

Request Params

KeyDatatypeRequiredDescription
ActionstringA map of attribute names to AttributeValue objects, representing the primary key of the item to delete.

Request Body

{"TableName"=>"asteroids", "Key"=>{"id"=>{"S"=>"2fcdc637-ec2c-4b68-bdf7-b90d151100e2"}}, "ConditionExpression"=>"attribute_not_exists(Replies)", "ReturnValues"=>"ALL_OLD"}

HEADERS

KeyDatatypeRequiredDescription
X-Amz-Targetstring
Content-Typestring