lay the pipe in a bath of isoprophy alcohol, the gunk will all slide out.

then, if you wanna keep the gunk, just let the alcohol evaporate.
it will evaporate fairly quickly, cause the flashpoint of isoprophyl alcohol is less than room temp.