Over a million developers have joined DZone.

How to Delete an Entire Azure Table in One Command

DZone's Guide to

How to Delete an Entire Azure Table in One Command

· Cloud Zone ·
Free Resource

Get the Metrics Collection and Monitoring Essentials tutorial collection. A 4-part tutorial series from DigitalOcean.

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


Getting Started with Kubernetes: A Webinar Series brought to you by DigitalOcean


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}