I made a tutorial about making caves a while back. To do this, you have to use the visibility tool. The advice given is correct that you can put back mesh by simply holding down the shift button while using the visibility tool:
2 Likes