using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using System;
using System.IO;
using System.Collections.Generic;

CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"));
string remoteFolder = "TestData/In";

string localName = "TestCase.xlsx";
string remoteName = "TestCase.xlsx";



var request = new DeleteWorksheetPivotTableFilterRequest(
    name: remoteName,
    sheetName: "Sheet3",
    pivotTableIndex: 0,
    fieldIndex: 0,
    needReCalculate: true,
    folder: remoteFolder,
    storageName: ""
);
cellsApi.DeleteWorksheetPivotTableFilter(request);