# Removing all inputs

**URL:** https://discourse.vtk.org/t/removing-all-inputs/1505
**Category:** Development
**Created:** [August 7, 2019, 1:13pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505 "2019-08-07T13:13:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![at123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/at123/32/748_2.png) [@at123](https://discourse.vtk.org/u/at123)
#### Post date: [August 7, 2019, 1:13pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505/1 "2019-08-07T13:13:52Z")

</div>

Hi,

I have a vtkBooleanOperationPolyDataFilter, ports 0 and 1 have been set with information.When I call RemoveAllInputs(), port 0 has 0 input connections but port 1 still has an input connection. Can any suggest a solution?

Thanks. Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [August 7, 2019, 3:13pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505/2 "2019-08-07T15:13:00Z")

</div>

Try `RemoveAllInputConnections(0)` and `RemoveAllInputConnections(1)`.

---

<div class="post-metadata">

### Author: ![at123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/at123/32/748_2.png) [@at123](https://discourse.vtk.org/u/at123)
#### Post date: [August 7, 2019, 3:15pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505/3 "2019-08-07T15:15:10Z")

</div>

I did. I got this error:

ERROR: In /work/standalone-x64-build/VTK-source/Filters/General/vtkOBBTree.cxx, line 1058  
vtkOBBTree (0x801dfa0): Can’t build OBB tree - no data available!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [August 7, 2019, 3:25pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505/4 "2019-08-07T15:25:32Z")

</div>

There is no data available because you have removed the inputs.

I suggest getting a better feel for how to use the filter with the simplest code you can create and make sure that it works as you want. In this case, start with a single boolean operations filter and give it two inputs. Make sure that works. Then you can add slowly add some complexity and go from there.

---

<div class="post-metadata">

### Author: ![at123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/at123/32/748_2.png) [@at123](https://discourse.vtk.org/u/at123)
#### Post date: [August 7, 2019, 3:36pm UTC](https://discourse.vtk.org/t/removing-all-inputs/1505/5 "2019-08-07T15:36:32Z")

</div>

I remove the data, then add new data, then i render it.
