Cycles. Masking shader. How to make objects disappear in plain sight.
Final:



Nodes:

For Masking Object - cube in this example just use Transparent BSDF with pure white color.

For object being masked - text - use mix between chosen shader (Diffuse here) and Transparent by Light Path > Transparent Depth:




  Of course object being masked should be inside masking object.