How to remove a specific molecule type from a specific region?

Hello everyone,

I have a question about LAMMPS, how to remove a specific molecule type from a specific region by LAMMPS? Is it possible? I have checked the "delete_atoms command. It works for removing specific molecules OR specific regions. I need to have both features at the same time. For example, I want to remove water molecules in the region dele.
region dele block EDGE EDGE EDGE EDGE 100 300 units box

Thanks,
Atefeh

delete_atoms also works on groups and you can define groups with regions or atom types and then define a group as the intersection of those groups.

axel.