Remove object from rendering?

Is there a way to mask out an object in rendering so that in Photoshop, you can ‘turn off’ the object?

Sorry, but I don’t get it. Can you explain what exactly you are after?

Hi,

If by “turn off” you mean to show the render as if the object of interest was not there - this involves two renders, one with and one without the object. Then you can either use the full render without mask or mask it.
If by “turn off” you mean to show the pixel data of the object as black or transparent, that is possible too by simple getting the mask of the object - though the shadow/illumination from the object may be tricky.

Thank you. I was wondering if there was a way to setup a rendering so that you can remove an object without having to do 2 renderings. I figured it was a long shot.