Good advice, and what I normally do.
In the instance my gas tube got clogged it was someplace between 1,000 and 2,000 rounds of lead (not copper washed) .22 LR before I went to fire some .223/5.56 through it, and they would not cycle. I was teaching a group of scouts to shoot and the AR was very popular. It was a pretty simple fix, but not something easy to do on the range, when I got home I knocked out the roll pin holding the gas tube in place, removed the gas tube, heated the end of the gas tube up with a propane torch and when the lead/grease mixture started to drip out I blew through the other end of the gas tube. Put the gas tube back in and went back to the range to fire some .223/5.56 through it and all was good.
Since that time I pull the conversion kit out and put a couple .223/5.56 through it every couple hundred rounds or at the end of a range session.