I think that you're thinking about booleans, see the attached image. There are a couple of different boolean operations (combine, difference and intersection) and how they work depends on the order that you select the geometry. In the image I selected the sphere then the cylinder and hit bolean difference. I hope that helps, Mat.