Deleting an existing table

Hi

I want to delete an existing table from a document and I try to do it by looping from the last column to the first and deleting each column. I'm left with one column though. Which is the right way of deleting a column?

May be it’s better to delete whole table at once?
slide.Shapes.Remove(table);