Delete Pivot Table from a Worksheet

How to Delete a Pivot Table from a Worksheet Using Aspose.Cells for Python via .NET

The following sample code deletes two pivot tables from the worksheet. First, it removes the pivot table using the Worksheet.pivot_tables.remove(pivot_table) method, and then it removes the pivot table using the Worksheet.pivot_tables.remove_at(index, keep_data) method.