# Slice removing from NIFTI images

**URL:** <https://discourse.slicer.org/t/slice-removing-from-nifti-images/32721>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [November 10, 2023, 3:39pm UTC](https://discourse.slicer.org/t/slice-removing-from-nifti-images/32721 "2023-11-10T15:39:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Georgiy\_Avaliani](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/georgiy_avaliani/32/68261_2.png) [@Georgiy\_Avaliani](https://discourse.slicer.org/u/Georgiy_Avaliani)\
**Post date:** [November 10, 2023, 3:39pm UTC](https://discourse.slicer.org/t/slice-removing-from-nifti-images/32721/1 "2023-11-10T15:39:45Z")

</div>

Hey!  
I have a folder full of blank NIFTI-GZ (.gz) files that I would like to edit. I use them as masks for ai model training.  
I need to remove 1 slice (for example extreme) in every .gz file. How can I do it manually or can I automate it the program?

Slicer version: 5.4.0
