How do I get rid of the shadows of the environment lights?

Cycles render.
If you look at the photo, you can see two shadows.
One is caused by lighting, and one is shadow caused by environmental lighting HDRI.
I want to remove the shadow of the environmental lighting HDRI without splitting the layer.

What are to trying to achieve with the HDRI? You just want it as a background or just in the reflections? Or you want it to light the scene as well?

You could use the Light Path node to achieve any or all of these.

I want to use it as background and reflection and brightness, I only want to get rid of the shadow.

Try the following setup.


This will basically make the HDRI influence everything but the shadows.

Before using Light Path (below)

After using Light Path (below)

Thank you for your answer.