## PivotTableCollection::Remove(const PivotTable\&) method


Deletes the specified [PivotTable](../../pivottable/) and delete the [PivotTable](../../pivottable/) data.

```cpp
void Aspose::Cells::Pivot::PivotTableCollection::Remove(const PivotTable &pivotTable)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pivotTable | const PivotTable\& | [PivotTable](../../pivottable/) object |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotTable](../../pivottable/)
* Class [PivotTableCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotTableCollection::Remove(const PivotTable\&, bool) method


Deletes the specified [PivotTable](../../pivottable/).

```cpp
void Aspose::Cells::Pivot::PivotTableCollection::Remove(const PivotTable &pivotTable, bool keepData)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pivotTable | const PivotTable\& | [PivotTable](../../pivottable/) object |
| keepData | bool | Whether to keep the [PivotTable](../../pivottable/) data |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotTable](../../pivottable/)
* Class [PivotTableCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
