# Remove parts of volume outside the segmentation

**URL:** <https://discourse.slicer.org/t/remove-parts-of-volume-outside-the-segmentation/31925>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [September 27, 2023, 3:21am UTC](https://discourse.slicer.org/t/remove-parts-of-volume-outside-the-segmentation/31925 "2023-09-27T03:21:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Windy](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@Windy](https://discourse.slicer.org/u/Windy)\
**Post date:** [September 27, 2023, 3:21am UTC](https://discourse.slicer.org/t/remove-parts-of-volume-outside-the-segmentation/31925/1 "2023-09-27T03:21:41Z")

</div>

I have a dataset containing unwanted particles, and I’ve created a segmentation mask to identify and exclude them. Is it possible to utilize this segmentation mask to effectively remove the unwanted particles from the original dataset and thereby clean it?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 27, 2023, 3:35am UTC](https://discourse.slicer.org/t/remove-parts-of-volume-outside-the-segmentation/31925/2 "2023-09-27T03:35:40Z")

</div>

Yes, you need to use the MaskVolume effect of the segment editor.
