Delete Pivot Table from a Worksheet

Contents
[ ]

Example

The following sample code deletes two pivot tables from the worksheet. First, it removes one pivot table using the Worksheet.getPivotTables().remove() method, and then it removes the other pivot table using the Worksheet.getPivotTables().removeAt() method.