The instructions I got from CMMG was to shoot a 223/556 round through it after swapping the bolt back in order to BLOW OUT any carbon. That's seems to work well as I've never had any issues over the years.
It wasn’t carbon……it was lead. No way that shooting 5.56 ammo was going to blow compacted lead out of the gas tube. The owner fired multiple rounds before he brought it to me, and it didn’t make any difference.
It’s possible that the barrel had a rough gas port, which stripped lead from the .22LR rounds, which caused the issue. What works, or doesn’t work, in one gun doesn’t always apply to another.