Joint compound is used to smooth between sections of drywall, I can't think of a use in plumbing.

If it's pipe dope (threaded pipe), cement (PVC), or solder (copper), just open the taps full force for 5-10 minutes, should flush out fine.