none
Easy way to empty an Azure table?

    Question

  • Hi,

    Is there an easy way to clear the contents of an Azure Table? e.g. With a single method call or LINQ statement?

    So far what I've done is put a method something like the following on my TableServiceContext implementation:

        public void ClearWidgets()
        {
          foreach (var item in this.Widgets)
          {
            this.DeleteObject(item);
          }
          this.SaveChanges();
        }

    Any easier way than that?

    thanks

    Jamie


    http://sqlblog.com/blogs/jamie_thomson/ | @jamiet | About me
    Jamie Thomson
    Sunday, October 24, 2010 7:18 PM

Answers

All replies