删除Azure表存储中的所有表

Pro*_*tis 2 c# azure azure-storage

我知道如何删除Azure表存储中的一个表,但不知道如何删除多个表。可能吗?

Ale*_*lex 6

您将不得不逐一迭代并删除它们:

var tableClient = storageAccount.CreateCloudTableClient();
foreach (var table in tableClient.ListTables())
    table.DeleteIfExists();
Run Code Online (Sandbox Code Playgroud)

或者使用异步api中的相应方法执行相同操作。