# About vtkImagePlaneWidget remove or delete vtkImageData from it self.

**URL:** https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675
**Category:** Development
**Tags:** doxygen, release-process, code, proposal
**Created:** [June 12, 2023, 2:40am UTC](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675 "2023-06-12T02:40:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [June 12, 2023, 2:40am UTC](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675/1 "2023-06-12T02:40:06Z")

</div>

Now, I created a vtkImagePlaneWidget instance, and i set the vtkImageData by SetInputDataConnection().  
Now, I want to set another vtkImageData instance, But I don’t konw how to remove the first vtkImageData instance or disconnect the pipeline between vtkImagePlaneWidget and vtkImageData. Please give me some suggestion.
