How I delete primitives from objects

I’m having trouble on re-doing a thing I made once. I am making a hard edge object, and I tried to apply a feature but I don’t remember how to do it. The feature in question is something like that: When I select two objects, hide one and merge them, the hidden primitive would cut of the area it was on the other object


Click the “Boolean” to subtract the hidden object or “cutter”