Plumbing – How to permanently seal a pipe filled with water and under pressure making it equal to the wall

plumbing

What I'm trying to do is something like this:
enter image description here

I don't want any section of the pipe out of the wall. So I can't use a common "external" cap. I need a cap that goes inside the pipe (or something else).

After sealed, the pipe will still be filled with water and under normal pressure for the kind of pipe. It will be a dead leg.

I'm trying to avoid breaking walls to change the pressure valve or cap the pipe.

Best Answer

Now we are getting somewhere. You have a pressure flushing system which is malfunctioning, and I can understand your desire to remedy this.

But your solution is too radical. The first attempt should be to get a better pressure system and not to do radical surgery on your existing piping. Can't you replace the valving with a better quality one? Tank (aka cistern) flushing systems have their own problems.

Is this an emergency? Have you removed the toilet and this is your only one?