Gustav Vingtoft
Gustav Vingtoft

Reputation: 409

Delete entire row (document) in DynamoDB

Is there a way to delete the entire row (document) in a AWS dynamoDB table via the cli?

From what I can tell, I can only delete a single item per delete. How can I delete the entire row with all the items in it?

Upvotes: 0

Views: 53

Answers (1)

Jason Wadsworth
Jason Wadsworth

Reputation: 8885

In DynamoDB "row" is a single "item". Everything is stored by its Partition and optional Sort key. Those are the keys you use in the delete operation. So when you do a delete you are deleting the "item" or "row" that has that key, in its entirety.

Upvotes: 3

Related Questions