问题
Is there a simple way to delete rows in Azure Table Storage without Query,
for example, if I want to delete any row that PartitionKey="A"
without get all content back and delete one by one.
回答1:
The REST API supports this (using If-Match:*): http://msdn.microsoft.com/en-us/library/dd135727.aspx Not sure the managed API supports this. You might be able to "trick" the managed API by registering a SendRequestEvent handler (http://msdn.microsoft.com/en-us/library/system.data.services.client.dataservicecontext.sendingrequest.aspx) and have that one change the If-Match header. I have not tested that.
回答2:
The answer is "no way" for now. If you only have PartitionKey or RowKey, you have to read all back then delete one by one :(
来源:https://stackoverflow.com/questions/8894311/delete-wildcard-row-in-azure-table-without-query