Justin Poliey
Justin Poliey

Reputation: 16341

Can I delete by attribute in Amazon SimpleDB without specifying an ItemName?

Can I delete by attribute in SimpleDB without providing an ItemName parameter in the query string? The way I store my data is the item names are UUIDs, so I don't know the UUID of the data I want to delete. Is there a way to just specify an attribute and have it delete all items with that attribute?

Upvotes: 4

Views: 1687

Answers (1)

Darryl
Darryl

Reputation: 1541

There isn't a way to delete without the item name, but you can use a SELECT to get the items to be deleted:

select itemName() from MyDomain where MyAttribute = 'foo'

Upvotes: 3

Related Questions