delete molecules from a 3D cell

Hi...

do you know if is it possible to delete the whole molecule from a 3D periodic cell that contain some atom names or bond names previously defined by us?

thanks for reading

javier