I assume you want to do it in excel, although you dont mention it anywhere.
If you record a macro and check what excel does when you remove a field, you get something like this:
Dim xlInstance = GetInstance(handle)
Dim xlWorkbook As Object = GetWorkbook(handle, workbookname)
xlWorkbook.ActiveSheet.PivotTables(pivotname).PivotFields(pivotfield).Orientation = xlHidden
You can add this as new action to excel VBO. Assuming you know "pivotname", Otherwise you could probably use index or add some code to find pivotname.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------