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.
In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.
Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.
Conditional deletes are useful for only deleting items if specific conditions are met. If those conditions are met, Amazon DynamoDB performs the delete. Otherwise, the item is not deleted.
@param deleteItemRequest Container for the necessary parameters toexecute the DeleteItem service method on AmazonDynamoDBv2.
@return The response from the DeleteItem service method, as returnedby AmazonDynamoDBv2.
@throws ItemCollectionSizeLimitExceededException
@throws ResourceNotFoundException
@throws ConditionalCheckFailedException
@throws ProvisionedThroughputExceededException
@throws InternalServerErrorException
@throws AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
@throws AmazonServiceException If an error response is returned by AmazonDynamoDBv2 indicating either a problem with the data in the request, or a server side issue.