Slice removing from NIFTI images

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