# delete point and cell from polydata

**URL:** https://discourse.vtk.org/t/delete-point-and-cell-from-polydata/4505
**Category:** Support
**Created:** [October 28, 2020, 2:57pm UTC](https://discourse.vtk.org/t/delete-point-and-cell-from-polydata/4505 "2020-10-28T14:57:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![bistek](https://discourse.vtk.org/user_avatar/discourse.vtk.org/bistek/32/2344_2.png) [@bistek](https://discourse.vtk.org/u/bistek)
#### Post date: [October 28, 2020, 3:29pm UTC](https://discourse.vtk.org/t/delete-point-and-cell-from-polydata/4505/2 "2020-10-28T15:29:05Z")

</div>

Quick update based on another post ([https://discourse.vtk.org/t/python-seg-fault/3353](https://discourse.vtk.org/t/python-seg-fault/3353)).

If I do

```auto
my_poly.EditableOn()
my_poly.BuildLinks()
point_n = my_poly.GetNumberOfPoints()
my_poly.DeleteCell(point_n - 2) 
my_poly.DeletePoint(point_n - 1) 
my_poly.Modified()

```

I get no error, but the polydata is not modified. I tried also with Update() but it rises an error.

Thanks again!

---

_[View the full topic](https://discourse.vtk.org/t/delete-point-and-cell-from-polydata/4505)._
