# How to erase all segments with eraser?

**URL:** <https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414>\
**Category:** Support\
**Tags:** segmentation, python\
**Created:** [August 30, 2021, 2:25pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414 "2021-08-30T14:25:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshay\_pillai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akshay_pillai/32/8301_2.png) [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Post date:** [August 30, 2021, 2:25pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414/1 "2021-08-30T14:25:29Z")

</div>

I want to erase a certain segment in my segmentations using erase in the segment editor. But I also want the erase to remove the surrounding segments if it is in the area of what I want to remove. Sort of like the “Apply to all segments in erase”. Right now I see that erase has “erase all segments” but when I click that nothing happens. Is there a way to do this?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 30, 2021, 2:54pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414/2 "2021-08-30T14:54:42Z")

</div>

> [@akshay\_pillai](#):
>
> Right now I see that erase has “erase all segments” but when I click that nothing happens. Is there a way to do this?

This was a regression that has been [fixed](https://github.com/Slicer/Slicer/issues/5584) in recent Slicer Preview Releases.

---

<div class="post-metadata">

**Author:** ![akshay\_pillai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akshay_pillai/32/8301_2.png) [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Post date:** [August 30, 2021, 3:29pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414/3 "2021-08-30T15:29:13Z")

</div>

I’m using 4.13.0-2021-08-24 but still seem to be having the same issue.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 30, 2021, 3:29pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414/4 "2021-08-30T15:29:47Z")

</div>

You need to use a more recent version.

---

<div class="post-metadata">

**Author:** ![akshay\_pillai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akshay_pillai/32/8301_2.png) [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Post date:** [August 30, 2021, 3:31pm UTC](https://discourse.slicer.org/t/how-to-erase-all-segments-with-eraser/19414/5 "2021-08-30T15:31:05Z")

</div>

Great. Thank you for your response, I’ll do that.
