eliminate z rotation component from a rotation mx

hy.
how i can eliminate z rotation component from a rotation mx

Don’t build a matrix that has a z component. What are you trying to do?

The Z-axis rotation comes as a source of your rotation matrix, but it’s lost once you applied it. Any final rotation can be represented by rotating along X & Y axises. Most probably you are trying to do something conceptually incorrect.