A shutoff valve connects to copper plumbing pipes ... As soon as the solder melts, twist and pull the valve off the copper tubing with a pliers. Clean the tubing with emery cloth.
If that valve needs replacement, contact your water utility to shut off the main valve at the curb ... problem is to install ...