Hot soapy water will remove the corrosive residue. A major reason it is corrosive is because it readily absorbs water. (another is the chemistry of the stuff) The hot soapy water quickly dissolves the crud and flushes it out of the gun. The heat from the water heats up the metal. If you wipe out the barrel with a couple of dry patches, the heat will quickly dry out any remaining moisture.
If you like, you can swab the bore afterwards with normal bore cleaners or a copper solvent.
Hot water has been used for centuries to clean up after black powder, and it workes very well for ammunition or percussion caps that used highly corrosive perchlorate priming compound.
I have been cleaning a pair of Remington 1858 reproductions for six months using hot soapy water, followed by lubrication with Ballistol (oil) and they show no sign of corrosion.