{{ !articles[0].partner.isSponsoringArticle ? "Platinum" : "Portal" }} Partner
architects,cloud,tips and tricks,azure

How to Delete an Entire Azure Table in One Command

Here's how to delete an entire Azure table:



I get this question quite often. I normally wouldn't make such a simple post, but:

  1. Most developers think they need to delete rows one row at a time.
  2. And that isn't true.

There is, in fact, support for deleting a whole table.


// Retrieve storage account from connection string
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
// Create the table client
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
// Delete the table it if exists


Published at DZone with permission of {{ articles[0].authors[0].realName }}, DZone MVB. (source)

Opinions expressed by DZone contributors are their own.

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks