Dig a trench with a garden spade to reach the collapsed area of sewer pipe. Dig four inches lower than the existing pipe for better access to the sewer line.
Cut through the sewer pipe on each side of the collapsed section with a handsaw or reciprocating saw. Make the cut both straight and perpendicular to the pipe. Remove the damaged pipe section.
Scrape off any burrs from the pipe cuts using a utility knife. Clean around the outside pipe ends with a rag. Brush PVC primer around the outside pipe ends, as well as the inside ends of two PVC end caps. If working on ABS pipes, no primer is needed.
Brush PVC cement onto all primed areas. For ABS, brush ABS cement around the outside of both pipes, as well as the inside of two ABS end caps.
Push one end cap onto the end of each cut sewer pipe, holding the caps to the pipe for 15 seconds while the cement sets. Fill in the trench with backfill, using the spade.