Is it posible to turn the turn the visibility of a whole layer off?

I kniow you can set the visibility of individual symbols in a layer by targeting their instance names, but is it possible to target the whole layer?