Plumbing is made of specific materials. If pipe, they can be cut, threaded and closed with a cap. If copper tubing, they can be cut and a cap soldered on. If plastic, they can be cut and a cap glued on. A professional plumber carrys all the tools to do this on his truck.