How thoroughly do I clean my barrel? It depends on the cleaning cycles I select on my dishwasher. Most people overclean their barrels. Some tips for cleaning them: 1) use stainless steel brushes; 2) never clean a barrel with CLP; 3) if using brass brushes, use one size over the caliber barrel you're cleaning; 4) if shooting lead bullets, shoot six rounds of hot jacketed bullets before quitting; and 5) carry a brush and solvent with you to the range and run a wet brush through the barrel several times before putting the gun away.
Undercleaning is always better than overcleaning unless you're using corrosive components like powder or primers. I had one friend who could never go out to eat after shooting because he had a blued black powder revolver. He had to go home and clean his gun in hot, soapy water or it would corrode. I told him to buy a stainless stainless steel gun and shave the stupid mustache. It was the 20th Century.
And Jeff Cooper cautioned against cleaning a .22LR barrel more than a few times a year. I can't do that, alas, any more than I can go to sleep without brushing my teeth, but that was his advice.