Delete Wildcard Row in Azure Table Without Query

泪湿孤枕 提交于 2019-12-07 17:13:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!