Select to view content in your preferred language

Best method to clear/purge a table

1561
0
08-18-2011 07:42 AM
DanielWalton
Frequent Contributor
I found it odd that there isn't a method available to simply wipe a table. There has to be a better way than this:

        static void ClearTable(Table table)
        {
            foreach (var row in table.Search("*", "1=1", null, RowInstance.Unique))
                table.Delete(row);
        }


What am I missing?
0 Kudos
0 Replies