Shader - hide object

It is possible to hide objcet thanks to shader or in the some other way?

I have two cameras on the scene and and I want to hide object from one of theme.